Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
Test- Python Variables
0
%
0
0
0
Back
Restart
a = "Python" b = "python" print(a == b) A) True B) False C) Error D) None
False
Oops!
Okay!
Which of the following is NOT a valid operator in Python? A) and B) or C) not D) but
11)but
Oops!
Okay!
x = 8 y = 3 print(x % y) A) 2 B) 1 C) 3 D) 8
2
Oops!
Okay!
hero1 = "Batman" hero2 = "Batman" print(hero1 == hero2)
Output: True
Oops!
Okay!
x = 10 y = 5 print(x + y) A) 15 B) 105 C) 5 D) 10
15
Oops!
Okay!
score = 50 score += 10 print(score) A) 10 B) 50 C) 60 D) Error
C) 60
Oops!
Okay!
Which of these is a Boolean value? A) 1 B) "True" C) False D) 0
C) False
Oops!
Okay!
Which of the following is a valid variable name in Python? A) 2cool4school B) my_variable C) break D) my-variable
my_variable
Oops!
Okay!
Which operator is used to check both conditions are True?A) or B) and C) not D) =
B) and
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies