Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Get quick and reliable solutions to your questions from a community of experienced experts on our platform. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.

Write a program that has the user input how many classes they are taking this semester and then output how many hours they will need to study each week. Assume that they need to study five hours per week for each class that they take.

Sagot :

This is for Python

class_amt = int(input('Amount of Classes: '))

hours = class_amt * 5

print(f'You need to study for {hours} hours every week')