Question
For activities with output like below, your output's whitespace (newlines or spaces) must match exactly. See this note. Write code that outputs variable num_weeks as
For activities with output like below, your output's whitespace (newlines or spaces) must match exactly. See this note.
Write code that outputs variable num_weeks as follows. End with a newline.
Ex: If the input is 3, then the output is:
Weeks: 3
'' Our tests will run your program with input 3, then run again with input 6.
Your program should work for any input, though. '''
num_weeks = input()
print(num_weeks = input('Weeks: 3'))
Can someone tell me what im doing wrong.
Error I get:
1: Compare outputkeyboard_arrow_up
Traceback (most recent call last): File "main.py", line 5, in
Input
3
Your output
Weeks: 3
Expected output
Weeks: 3
clear2: Compare outputkeyboard_arrow_up
Traceback (most recent call last): File "main.py", line 5, in
Input
6
Your output
Weeks: 3
Expected output
Weeks: 6
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started