Skip to content

Commit 684a9ff

Browse files
authored
Merge pull request #102 from SahilDave04/main
Changes made according to request.
2 parents c94f3b5 + 353aa88 commit 684a9ff

8 files changed

+10
-5
lines changed

1st.py

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
def myfunc(a,b):
22
print(a+b)
33

4-
myfunc(10,43)
4+
myfunc(10,43)

5th.py renamed to Guess Right.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
print("wrong guess, try a smaller number")
1010
else:
1111
print("Congratulations, You have guess the number")
12-
break;
12+
break;

3rd.py renamed to Guess Right2.py

File renamed without changes.

Hello World.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print('hello world')

6th.py renamed to Step of 10.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
for x in range(0,31,10):
2-
print (x)
2+
print (x)

Sum of First "n" Natural numbers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
n = int(input("Input n : "))
2+
sum = 0
3+
for i in range(n):
4+
sum = sum + (i+1)
5+
print(sum)

4th.py renamed to n>10 times Hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
while(a>10):
44
print("Hello")
5-
a=a-1
5+
a=a-1

0 commit comments

Comments
 (0)