File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 2222print (type (bool_var )) # Boolean type
2323
2424name = "hello"
25+ faculty = "CS faculty"
2526print (type (name )) # String type
27+ print (name [2 ])
28+
2629
2730List = ["Amrata" , 29 , "BCS" ]
2831print (type (List )) # List type
Original file line number Diff line number Diff line change 1+ var_name1 = "Amrata"
2+ var_name2 = "Deokar"
3+ print (var_name1 + " " + var_name2 )
4+ a = "1"
5+ print (a + var_name1 )
6+ print (5 * "Jenny's \\ n \" Lectures\" " )
7+ b = 3
8+ c = 4
9+ var = b > c
10+ print (var )
11+ print (type (var ))
Original file line number Diff line number Diff line change 11name = input ("What is your name?" )
22print (name )
3+
34name = "Jenny"
45print (name )#as the name suggest Variable values can vary
6+
57a = 1 #Dynamically typed
68b = "Payal"
79print (a )
810print (b )
9- length = len (name )
11+
12+ length = len (name )#find length
1013print (length )
You can’t perform that action at this time.
0 commit comments