based in python variable
Avinash Mathi
Posted on September 3, 2024
variable is collection of stored data
Variable
a=20
b="Avinash"
print(a,b)
casting
a=input()
b=input()
c=input()
print(a,b,c)
variablename
my_variablename="Python programming"
print(my_variablename)
variable a assign multiple value
x,y,z="Avinash","arjun","Arun"
print(x,y,z)
one value to multiple value
x=y=z="Avinash"
print(x,y,z)
unpack
movie=["Rayyan","singam","goat"]
x,y,z=movie
print(x,y,z)
gloabal variable
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
💖 💪 🙅 🚩
Avinash Mathi
Posted on September 3, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.