Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit fbea64b

Browse files
authored
Add files via upload
1 parent e3039eb commit fbea64b

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

set1/1_sum-57.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sum=0;
2+
for i in range(10):
3+
if i%5==0 and i%7!=0:
4+
sum=sum+i;
5+
print(sum);

set1/2_area_dim.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
length=6+(6*0.15);
2+
breadth=8+(8*0.15);
3+
height=10+(10*0.15);
4+
area=2*length*breadth+2*length*height+2*height*breadth;
5+
print(area);

set1/3_concat.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
firstset=["Ron",
2+
"Hermione",
3+
"Harry",
4+
"Professor",
5+
"Dobby",
6+
"List Items 2",
7+
"The House Elf",
8+
"Potter",
9+
"Granger",
10+
"Lockhart",
11+
"Weasley"];
12+
13+
firstset.sort();
14+
15+
secondset=["Potter",
16+
"Fred",
17+
"Greg",
18+
"George",
19+
"Voldemort",
20+
"Sirius"
21+
"Dumbledore"];
22+
23+
secondset.append(firstset);
24+
print(secondset);

0 commit comments

Comments
 (0)