Basics Flashcards
1
Q
python is dynamically typed / statically typed
and why?
A
dynamically typed
A dynamically typed language is a programming language in which variable types are determined at runtime, rather than being explicitly declared at compile-time
In python, we are not required to declare type for variables. Whenever, are assigning the value, based on value, type will be allocated automatically.
2
Q
Identifiers
A
A name in python program is called identifiers. It can be class name or function name or module name or variable name.
3
Q
Multiple variables points (2)
A
- We can declare multiple variables and initialize them simultaneously.
Ex: a,b,c = 5,10,15 - If you have variables ad all have same value
yo can declare them like x=y=z=1
4
Q
Rules to define identifiers in python
A
- Start with a letter or underscore.
- Followed by alph-numeric characters or underscore
- No special chahracters
5
Q
A