based in python variable

avinash_mathi_483b018e36b

Avinash Mathi

Posted on September 3, 2024

based in python variable

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_483b018e36b
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.

Related

based in python variable
ython based in python variable

September 3, 2024