Rachel M.

asked • 01/18/23

How do I input a name from another input into a different input.

the program I have so far

CLASS = str(input("What is the name of your class: "))

HOURS = int(input("How many hours a week do you spend in", CLASS))


Line 1 works, but lien two crashes it. I'm new to python.I've googled and looked through my notes and I can't figure it out. Any help is appreciated.

1 Expert Answer

By:

Bradley T. answered • 01/18/23

Tutor
5 (4)

Tutor for Python and High School and Middle School Math

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.