Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 1_sum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
output=0;
for i in range(1,500):
if (i%5==0) and (i%7!=0):
output+=i;
print output;
8 changes: 8 additions & 0 deletions 2_area.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
l=6;
b=8;
h=10;
l1=l+(l*0.15);
b1=b+(b*0.15);
h1=h+(h*0.15);
area=(l1*b1)+2*(l1*h1)+2*(b1*h1)
print area;
10 changes: 10 additions & 0 deletions 6_prime
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
print("Prime numbers between 1 and 99999 are:")

for num in range(1,100000):

if num > 1:
for i in range(2,num):
if (num % i) == 0:
break
else:
print(num)
5 changes: 5 additions & 0 deletions 7_palindrome.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
string=raw_input("enter a sring")
if(string==string[::-1]):
print "string is palindrome"
else:
print "string is not palindrome";