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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Rules to define identifiers in python

A
  1. Start with a letter or underscore.
  2. Followed by alph-numeric characters or underscore
  3. No special chahracters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly