Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Challenge 1.6.1: Read user input and print to output Activity Assign user str wi

ID: 3813777 • Letter: C

Question

Challenge 1.6.1: Read user input and print to output Activity Assign user str with a string from user input, with the prompt: 'Enter a string:ln' Reminder: The "n" is a newline character that is not visible in the output and causes following output to appear on the next line Note: These activities may test code with different test values. This activity will perform two tests the first with use input of "Hello! the second with user input of "3230 Main St." See How to use zyBooks. 2 Your solution goes her 4 prin Ser str) Run View your last submission V Feedback?

Explanation / Answer

for 1.6.1

user_str=input("Enter a string: ")
print(user_str)

for 1.6.2

num1=int(input('Enter first number '))
num2=int(input('Enter second number '))
s=num1+num2
print('the sum of two numbers %d and %d is %d ' % (num1,num2,s))