-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathex1-forloop.py
More file actions
25 lines (23 loc) · 875 Bytes
/
ex1-forloop.py
File metadata and controls
25 lines (23 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Count to n and print each number
n = int(input("Enter the value of n: "))
def count_to_n(x = n):
for i in range(1, x + 1):
print(i, end=' ')
print()
print("Going to count to {} . . .".format(n))
count_to_n(n)
#------------------------------------------------------------------
print("first modification for 2nd commit")
#------------------------------------------------------------------
print("Added this line of code from techdevelopers from git terminal")
#--------------------------------------------
print("Added 1st line from techteam1 on GitHub")
#--------------------------------------------
print("Added 2nd line from techteam1 on GitHub")
#--------------------------------------------
print("Added this line from User-2 account")
x = 100
#--------------------------------------------
print("Added this line from User-2 account")
B = 700
C = 900