Skip to content

Commit c2c3c25

Browse files
committed
After Course section2
1 parent 6b88dff commit c2c3c25

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

Section2/.idea/Section2.iml

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

Section2/.idea/misc.xml

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

Section2/lecture22/Program2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Program to find sum and average of n numbers
2+
23
n = num = int(input("Enter the limit \n"))
34
total = 0
45
while n > 0:

Section2/lecture23/Program1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
var1 = 12 # declaring variable
33
print(var1) # printing the variable
44
# var2 = 43 We can comment lines of code
5+
print("Hrllo")

Section2/lecture25/Program3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Program to check a string is a keyword
22
import keyword
33
str1 = "if"
4-
print(str1," is keyword ? ", keyword.iskeyword(str1))
4+
print(str1, " is keyword ? ", keyword.iskeyword(str1))
55

66
str2 = "const"
77
print(str2, " is keyword ? ",keyword.iskeyword(str2))

0 commit comments

Comments
 (0)