What will be the datatype of the var in the below code snippet?
var = 10 print(type(var)) var = "Hello" print(type(var))
Str and int
int and int
str and str
int and str
Passing –O when running python
Assertions are disabled by default
Both A and B are wrong
Assertions cannot be disabled in python
Brackets
Indentation
Key
None of the above
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
James Gosling
Guido van Rossum
Dennis Ritchie
Bjarne Stroustrup
Compiled Language
Markup Language
Interpreted Language
Assembly Language
.py
.python
.pt
.pyt
int x = 10
x = 10
var x = 10
x: 10
<class 'float’>
<class 'int'>
<class 'string'>
<class 'number'>
<!-- This is Comment -->
// This is Comment
/* This is Comment */
# This is Comment
int
float
str
list
55
10
5
Type Error
3.33
3
4
Error
Displays a message to the user.
Receives input from the user as an integer.
Receives input from the user as a string.
Both A and C
Checks if two variables have the same value.
Checks if two variables refer to the same object in memory.
Assigns a value to a variable.
123var
_var
if
var-name
2
1
int("123")
integer("123")
int["123“]
(int) “123”
True
False
0
^
**
^^
exp()