Skip to content

Commit 075bbaf

Browse files
committed
After Course section3
1 parent c2c3c25 commit 075bbaf

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

Section3/.idea/Section3.iml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Section3/.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Section3/lecture31/Program1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
print(type(var1), " value = ",var1)
44
var2 = 12.23
55
print(type(var2), " value = ",var2)
6-
var3 = 10e10 # we can use exponents
6+
var3 = 10e10 # we can use exponents
77
print(type(var3), " value = ",var3)
88
var4 = 10+20j # we can use complex num
99
print(type(var4), " value = ",var4)

Section3/lecture35/Program1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
print("Tuple days = ", days)
55
emp = () # empty tuple
66
print("empty tuple =", emp)
7-
tup = (1,) # empty tuple
7+
tup = (1,) # empty tuple
88
print("single element tuple =",tup)

Section3/lecture35/Program2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Program showing useage of 'in' with tuples
1+
# Program showing usage of 'in' with tuples
22

33
days = ("sun", "mon", "tue", "wed", "thu", "fri", "sat")
44
if "mon" in days:

Section3/lecture37/Program1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Program to show declaration and usage of dictionaries
22

33
dict1 = {"name": "David", "age": 31, "job": "instructor"}
4-
print("dict1 = ", ict1)
4+
print("dict1 = ", dict1)
55
print("dict1 name = ", dict1["name"])
66
dict2 = {} # empty dictionary
77
print("empty dictionary = ", dict2)
88
dict1["age"] = 32
9-
print("dict1 after changing name ", dict1)
9+
print("dict1 after changing age ", dict1)

0 commit comments

Comments
 (0)