Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit b9924bc

Browse files
committed
Add files to repository
1 parent afc19f6 commit b9924bc

File tree

170 files changed

+2235
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+2235
-0
lines changed

100_MagicChef.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

101_Print1toN.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
counter = int(input()) + 1
5+
for i in range(1, counter):
6+
print(i, end="")
7+
major_branch()

102_HalfPyramid.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
counter = int(input()) + 1
5+
for i in range(1, counter):
6+
print(i * "*")
7+
major_branch()

103_LoopInput.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
counter = 0
5+
number = float(input())
6+
while number <= 100 and number != 0:
7+
counter += number
8+
number = float(input())
9+
print(int(counter))
10+
major_branch()

104_Sim1.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
length = ((int(input())) * 2) - 1
5+
if length == 1
6+
print("*")
7+
else:
8+
print(length * "*")
9+
10+
major_branch()

105_EzLoop.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
total = int(input())
5+
counter = 0
6+
while counter != total:
7+
message = input()
8+
counter += 1
9+
print("input", counter, "is :", message)
10+
major_branch()

106_TheInverseTriangle.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

107_UniteCampTheAvenger.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
message = input()
5+
invite += message.count("Unite")
6+
invite += message.count("unite")
7+
invite += message.count("Avenger")
8+
invite += message.count("avenger")
9+
if invite > 0:
10+
while count != len(message):
11+
if message[count].isdigit:
12+
print("Unite I'm the avenger!")
13+
break
14+
else:
15+
count += 1
16+
else:
17+
print("Avengers are coming!")
18+
else:
19+
print("Are you sure about that??")
20+
major_branch()

108_IsPrimeNumber.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
num = int(input())
5+
if num > 1:
6+
for i in range(2, num):
7+
if (num % i) == 0:
8+
print("No")
9+
break
10+
else:
11+
print("Yes")
12+
else:
13+
print("No")
14+
major_branch()

109_AlexanderWoodenBridge.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
distance = int(input())
5+
long_brick = int(input())
6+
short_brick = int(input())
7+
if distance <= ((long_brick * 4) + short_brick):
8+
long_brick_use = distance // 4
9+
short_brick_use = distance - (long_brick_use * 4)
10+
if long_brick_use >= long_brick or short_brick_use <= short_brick:
11+
print("Ionioi Hetairoi!!!")
12+
print("Large Wood :", int(long_brick_use))
13+
print("Small Wood :", int(short_brick_use))
14+
else:
15+
print("We failed, men.")
16+
else:
17+
print("We failed, men.")
18+
major_branch()

110_MaxChar.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
text = input().lower()
5+
raw_txt = text.split(",")
6+
message = []
7+
for i in raw_txt:
8+
number = text.count(i)
9+
message.append(number)
10+
print(max(text))
11+
positions = ((message).index((max(message))))
12+
print(text[positions])
13+
major_branch()

111_Selectorder.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
5+
major_branch()

112_ListtheOrder.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

113_BananaOrder1.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

114_JustPrintaMatrix.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
length = int(input())
5+
width = int(input())
6+
len_counter = 0
7+
wid_counter = 0
8+
message = ""
9+
while wid_counter != width:
10+
while len_counter != length:
11+
news = input()
12+
news += message + " "
13+
len_counter += 1
14+
print("")
15+
wid_counter += 1
16+
len_counter = 0
17+
print(news)
18+
messenger = ""
19+
major_branch()

115_AddingMatrices.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
a_one = int(input())
5+
a_two = int(input())
6+
a_three = int(input())
7+
a_four = int(input())
8+
b_one = int(input())
9+
b_two = int(input())
10+
b_three = int(input())
11+
b_four = int(input())
12+
print((a_one + b_one), (a_two + b_two))
13+
print((a_three + b_three), (a_four + b_four))
14+
major_branch()

116_SortAgain.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
counter = 0
5+
limits = int(input())
6+
listings = []
7+
while counter != limits:
8+
listings.append(float(input()))
9+
counter += 1
10+
listings.sort()
11+
counter = 0
12+
while counter != limits:
13+
number = listings[counter]
14+
if number % 1 == 0:
15+
print(int(number), end=" ")
16+
else:
17+
print(number, end=" ")
18+
counter += 1
19+
major_branch()

117_UltimateEzLongPrintList.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
message = input()
5+
length = len(message)
6+
counter = 0
7+
while counter != length:
8+
if message[counter] == " ":
9+
print("")
10+
else:
11+
print(message[counter], end="")
12+
counter += 1
13+
major_branch()

118_UltimateEzLongPrintString.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
message = input()
5+
length = len(message)
6+
counter = 0
7+
while counter != length:
8+
print(message[counter])
9+
counter += 1
10+
major_branch()

119_UltimateEzSizeList.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
listings = []
5+
counter = 0
6+
limits = int(input())
7+
while limits != counter:
8+
message = input()
9+
listings.append(message)
10+
counter += 1
11+
print(listings)
12+
major_branch()

11_PowerAdditionbysummation.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""This thing will calculate the sum of the power and sum"""
2+
def power():
3+
"""Hello"""
4+
vara = int(input())
5+
varb = int(input())
6+
print((vara ** varb) + (vara + varb))
7+
power()

120_RayCasting2D.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

121_ListtheData.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
counter = 0
5+
while counter != 10:
6+
counter += 1
7+
message[counter] = input()
8+
9+
major_branch()

122_TheExamGraph(Short).py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
counter = 0
5+
limits = int(input())
6+
message = ""
7+
for counter in range(limits)
8+
message = input()
9+
message.split(" ")
10+
message.sort(" ")
11+
counter = 0
12+
print(message)
13+
while counter != limits:
14+
print(".10s" %message[counter] + ":", "*" * ((message[counter + 1]) / 5))
15+
counter += 1
16+
major_branch()

123_SpreadIt.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
message = list(input())
5+
message.sort(reverse=True)
6+
message_new = []
7+
for i in message:
8+
if message_new.count(i) == 0:
9+
message_new.append(i)
10+
print(message_new)
11+
answer = []
12+
i = 0
13+
for i in message_new:
14+
answer.append(message.count(i))
15+
answer.sort(reverse=True)
16+
print(answer)
17+
major_branch()

124_HowmanyChar1.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
message = list(input())
5+
message.sort(reverse=True)
6+
message_new = []
7+
for i in message:
8+
if message_new.count(i) == 0:
9+
message_new.append(i)
10+
print(message_new)
11+
answer = []
12+
i = 0
13+
for i in message_new:
14+
answer.append(message.count(i))
15+
answer.sort(reverse=True)
16+
print(answer)
17+
major_branch()

125_HowmanyChar2.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

126_GeniusPart1.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

127_Money.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

128_List.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

129_PongYa.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
number = input()
5+
if number.endswith("3"):
6+
print("Pong")
7+
else:
8+
number = int(number)
9+
if number % 3 == 0:
10+
print("Pong")
11+
else:
12+
print(number)
13+
major_branch()

12_PimlogoChallenge.py

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"""What"""
2+
def hello():
3+
"""doing something"""
4+
print("windows")
5+
print("starbucks coffee")
6+
print("google")
7+
print("java")
8+
print("apple")
9+
print("mozilla firefox")
10+
print("sublime text")
11+
print("google chrome")
12+
print("python")
13+
print("microsoft edge")
14+
print("skype")
15+
print("twitter")
16+
print("youtube")
17+
print("line")
18+
print("messenger")
19+
print("instagram")
20+
print("intel")
21+
print("kickstarter")
22+
print("nvidia")
23+
print("android")
24+
print("kentucky fried chicken")
25+
print("mcdonald's")
26+
print("micro-star international")
27+
print("the sims 4 get together")
28+
print("ubuntu")
29+
hello()

130_ChristmasTree.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

131_Prime1toN.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

132_Checkmate.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""This program will ask input then, run the program, later then print out the results"""
2+
def major_branch():
3+
"""This is the main fuction. It will do everything."""
4+
major_branch()

0 commit comments

Comments
 (0)