Test- Python Variables
Help
hero1 = "Batman" hero2 = "Batman" print(hero1 == hero2)
Output: True
Which of the following is a valid variable name in Python? A) 2cool4school B) my_variable C) break D) my-variable
my_variable
x = 10 y = 5 print(x + y) A) 15 B) 105 C) 5 D) 10
15
Unlock this slideshow and over 4 million more with Baamboozle+
Try slideshows
Your experience on this site will be improved by allowing cookies.
Allow cookies