Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 print(num_weeks = input('Weeks: 3')) EOFError: EOF when reading a line

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 print(num_weeks = input('Weeks: 3')) EOFError: EOF when reading a line

Input

6

Your output

Weeks: 3

Expected output

Weeks: 6

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions