Computer Science
Find the errors in following code fragment:
print (x = y = 5)
Python Funda
33 Likes
Answer
Python doesn't allow assignment of variables while they are getting printed.
Answered By
15 Likes
Related Questions
Predict the output
a, b, c = 10, 20, 30 p, q, r = c - 5, a + 3, b - 4 print ('a, b, c :', a, b, c, end = '') print ('p, q, r :', p, q, r)
Find the errors in following code fragment:
y = x + 5 print (x, Y)
Find the errors in following code fragment:
a = input("value") b = a/2 print (a, b)
Find the errors in following code fragment : (The input entered is XI)
c = int (input ( "Enter your class") ) print ("Your class is", c)