Python Variables & Data Types What will be the output of the following code? x = “10” y = 5 print(x + y) 10 5 15 Error 105 Variable names in Python are always case-sensitive: False True Can you declare a variable in Python without assigning any value? No Yes What data type will the variable x have after the following code runs? x = 10 + 5.5 int complex str float Which data type is used to store a sequence of characters in Python? bool float str int What will be the output of the following code? a = 10.5 print(type(a)) class ‘float’ class ‘str’ class ‘int’ class ‘bool’ Which of the following is a mutable data type in Python? str list tuple int Which of the following is the correct way to declare a variable in Python? int x = 10 x := 10 variable x = 10 x = 10 Python has no command for declaring a variable. A variable is created the moment you first assign a value to it: False True What will be the output of the following code? x = 5 print(type(x)) class ‘int’ class ‘bool’ class ‘str class ‘float’ Loading …