Computer Science
Find the errors(s)
print ("Hello"/2)
print ("Hello" / 2)
Python Data Handling
9 Likes
Answer
Both the lines of this Python code will give an error as strings cannot be used with division operator (/).
Answered By
7 Likes
Related Questions
Find the errors(s)
print ("Hello" + 2) print ("Hello" + "2") print ("Hello" * 2)
What will be the output produced?
x, y = '5', 2 z = x + y print(z)
Find the errors(s)
pi = 3.14 print (type (pi)) print (type ("3.14")) print (type (float ("3.14"))) print (type (float("three point fourteen")))
What will be the output produced?
x, y, z = True, False, False a = x or (y and z) b = (x or y) and z print(a, b)