Font size
WorksheetsPython Battle Royale: Who Will Survive in the End?❤️🤔
Total questions: 15
Worksheet time: 12mins
Guess the output🤔
10
15
5
Error
Guess the output
Int
Str
Float
Error
Guess the output
8
35
53
Error
Print(100/5+2*3)
62
26
26.0
Error
x = 5
y = 11
x+=9
x+=y
Print (x*y)
275
257
725
Error
x = 77
y = x % 10
x+=y
Print(x%2)
0
1
2
Error
x = input("Enter a number: ")
y = input("Enter another number: ")
print(x + y)
Enter a number: Enter another number:
Enter a number:Enter another number:
Enter a number:
Enter another number:
Error
print("2 + 3 =", 2 + 3)
print("2" + "3")
>> 5
>> 23
>> 2+3 = 5
>> 5
>> 2+3 = 5
>> 23
Error
print("Hello" + " " * 3 + "World")
Error
HelloWorld
Hello World
HelloWorld
print("Cat" * 0 + "Dog")
CatDog
Error
Dog
Cat
a=10
b=a% 4
c=b * 2
print (c)
2
4
8
Error
x = 10
x = x + 2 * 3
x = x - (x // 4) * 2
x = x + 5 - 3
x = x - x // 3
30
None
15
Error
Which is NOT a legal variable name?
_myvar = 20
my-var = 20
Myvar = 20
my_var = 20
What is variable unpacking?
(a)
What should we write to print all the reserved Keywords?
