#
&
*
**
List
Tuple
Dictionary
Set
Increases code duplication
Reduces code reusability
Promotes code reusability and modularity
Makes program slower
Lambda Function
Recursive Function
Anonymous Function
Built-in Function
What will be the output?
x = 10 def fun(): global x x = 20 fun() print(x)
10
20
Error
None
Local Variable
Static Variable
Global Variable
Instance Variable
Global Scope
Built-in Scope
Local Scope
Module Scope
x = 10 y = x x = 20 print(y)
+
//
Variables must be declared before use
Data type is checked at compile time
Variable type is determined at runtime
Python has no data types
What is the output?
x = 5 print(bool(x))
False
True
5
addr()
mem()
id()
hash()
Braces {}
Parentheses ()
Indentation
Semicolon ;
int
float
char
bool
Python is proprietary software.
Python is open-source software.
Python is hardware dependent.
Python cannot run on Linux.
Compiled only
Interpreted
Assembly
Machine
print(2 ** 3 ** 2)
64
512
256
36