Westonci.ca is the premier destination for reliable answers to your questions, brought to you by a community of experts. Our Q&A platform provides quick and trustworthy answers to your questions from experienced professionals in different areas of expertise. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.

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')