please explain what I need to enter. I\'ve already entered a prior chegg solutio
ID: 3744573 • Letter: P
Question
please explain what I need to enter. I've already entered a prior chegg solution but it still says failed.
Input a string of digits Convert the string to an int. Print the int Convert the string to a float Print the float CODE codepy untltied New Full Screen 1 in str input(Input s: ") 2 # in int 3 in int-int(in_str) 4 print("in int " in int) 5 # in-float- 6 in float int(in_str) 7 print("in_float ", in float) 4 Spaces Save&Rn Tests Test Cases Name Test l Type /O Test Case Status Falled O Type here to searchExplanation / Answer
in_str = input("Input s: ") # take string of digits in_int = int(in_str) # convert to int print("in_int = ", in_int) # print int in_float = float(in_str) # convert to float print("in_float = ", in_float) # print float
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.