casting in pytho programming
casting in python
a=int(6)
b=int(7)
c=int(6)
print(a,b,c)
a=str("56")
b=str("23")
c=str("45")
print(a,b,c)
a=float(1)
b=float(6)
c=float(7)
print(a,b,c)
o/p
6 7 6
56 23 45
1.0 6.0 7.0
casting in python
a=int(6)
b=int(7)
c=int(6)
print(a,b,c)
a=str("56")
b=str("23")
c=str("45")
print(a,b,c)
a=float(1)
b=float(6)
c=float(7)
print(a,b,c)
o/p
6 7 6
56 23 45
1.0 6.0 7.0
variable is collection of stored data
a=20
b="Avinash"
print(a,b)
a=input()
b=input()
c=input()
print(a,b,c)
my_variablename="Python programming"
print(my_variablename)
x,y,z="Avinash","arjun","Arun"
print(x,y,z)
x=y=z="Avinash"
print(x,y,z)
movie=["Rayyan","singam","goat"]
x,y,z=movie
print(x,y,z)
x="Avinash"
def myfun():
print("Python develop "+x)
myfun()
o/p
20 Avinash
4
5
6
4 5 6
Python programming
Avinash arjun Arun
Avinash Avinash Avinash
Rayyan singam goat
Python develop Avinash
python
Basic of python
The python is the develop in the author: Guido van rossum in 1991
The python is interperters and compiler language
The python difference in interperters and compiler
interper:
It excutes a program line by line
It is a slow process
It does not generate any form of output
It takes less utilized of cpu
compiler:
It translates a program on a single run
It is fast process
It generate output in the form of .excuted
It is utilized cpu more