Computer Science
Find the errors in following code fragment : (The input entered is XI)
c = int (input ( "Enter your class") )
print ("Your class is", c)
Python Funda
26 Likes
Answer
The input value XI is not int type compatible.
Answered By
14 Likes
Related Questions
Find the errors in following code fragment:
print (x = y = 5)
Find the errors in following code fragment:
a = input("value") b = a/2 print (a, b)
Consider the following code :
name = input ("What is your name?") print ('Hi', name, ',') print ("How are you doing?")
was intended to print output as
Hi
, How are you doing ? But it is printing the output as:
Hi
, How are you doing? What could be the problem ? Can you suggest the solution for the same ?
Find the errors in following code fragment :
c = input( "Enter your class" ) print ("Last year you were in class") c - 1