Essential Software: Dr. Muhammad Yousuf Tufail
Essential Software: Dr. Muhammad Yousuf Tufail
Department of Mathematics
Institute of Business Administration.
Yousuf Tufail ¯ Yousuf Tufail
[email protected]
Lecture 3
Example (1)
Example (1)
What are the types of the following variable.
a=2, b=2.34, c=‘I am string’, d=True
Example (1)
What are the types of the following variable.
a=2, b=2.34, c=‘I am string’, d=True
Solution
Example (1)
What are the types of the following variable.
a=2, b=2.34, c=‘I am string’, d=True
Solution
a=2
Example (1)
What are the types of the following variable.
a=2, b=2.34, c=‘I am string’, d=True
Solution
a=2
b=2.34
Example (1)
What are the types of the following variable.
a=2, b=2.34, c=‘I am string’, d=True
Solution
a=2
b=2.34
c=‘I am string’
Example (1)
What are the types of the following variable.
a=2, b=2.34, c=‘I am string’, d=True
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
Example (1)
What are the types of the following variable.
a=2, b=2.34, c=‘I am string’, d=True
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True
Example (1)
What are the types of the following variable.
a=2, b=2.34, c=‘I am string’, d=True
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
type(a)
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
type(a)
int
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
type(a)
int
type(b)
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
type(a)
int
type(b)
float
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
type(a)
int
type(b)
float
type(c)
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
type(a)
int
type(b)
float
type(c)
string
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
type(a)
int
type(b)
float
type(c)
string
type(d)
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
type(a)
int
type(b)
float
type(c)
string
type(d)
bool
Solution
a=2
b=2.34
c=‘I am string’ (It will be green in color)
d=True (It will be blue in color)
type(a)
int
type(b)
float
type(c)
string
type(d)
bool
Note: Strings are always written in ‘ ‘ or ” ”
Dr. Muhammad Yousuf Tufail (IBA.) Essential Software Lecture 3 3/5
Lists