Skip to content

Commit 2f4a57a

Browse files
committed
Added variable examples in var_in_python.py
1 parent 16e4874 commit 2f4a57a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

var_in_python.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=input("What is your name?")
2+
print(name)
3+
name="Jenny"
4+
print(name)#as the name suggest Variable values can vary
5+
a=1 #Dynamically typed
6+
b="Payal"
7+
print(a)
8+
print(b)
9+
length=len(name)
10+
print(length)

0 commit comments

Comments
 (0)