Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Srishti44-g authored Oct 1, 2020
1 parent fbe5037 commit 15adac5
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Arithmetic Operators.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if __name__ == '__main__':
a = int(input())
b = int(input())
c = a + b
d = a - b
e = a * b
print(c)
print(d)
print(e)
1 change: 1 addition & 0 deletions Hello World.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello, World!")
7 changes: 7 additions & 0 deletions Loops.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if __name__ == '__main__':
n = int(input())
i = 0
while i < n :
a = i * i
i+=1
print(a)
4 changes: 4 additions & 0 deletions Print Fuction.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
n=int(input())
ar=range(1,n+1)
for i in ar:
print(i,end="")
7 changes: 7 additions & 0 deletions Python - Division.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if __name__ == '__main__':
a = int(input())
b = int(input())
c = a//b
d = a/b
print(c)
print(d)
23 changes: 23 additions & 0 deletions Python If-Else.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/python3

import math
import os
import random
import re
import sys



if __name__ == '__main__':
n = int(input().strip())
if(n %2 !=0) :
print("Weird")
else:
if(n>=2 and n<=5):
print("Not Weird")
elif(n>=6 and n<=20):
print("Weird")
elif(n>20):
print("Not Weird")


5 changes: 5 additions & 0 deletions Write a Functions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def is_leap(year):
return year%4 ==0 and (year%100 !=0 or year%400 ==0 )


year = int(input())

0 comments on commit 15adac5

Please sign in to comment.