-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebuggin.py
62 lines (42 loc) · 1.11 KB
/
debuggin.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# import pdb
# pdb.set_trace()
# # a = "aaa"
# # b = "bbb"
# # c = "ccc"
# # def final(var1, var2, var3):
# # return(var1+var2+var3)
# # print(final(a,b,c))
# # user_funds = 10.31
# # item_price = float(input("Burger price: "))
# # if item_price < user_funds:
# # print("You have enough money!")
# # if item_price == user_funds:
# # print ("You have the precise amount of money"
# # if item_price > user_funds:
# # print ("Sorry you don't have enough money")
# # def product(n):
# # total = 1
# # for i in n:
# # total *= i
# # return total
# # print(product([4,4,5]))
# def is_prime(x):
# if x < 2:
# return False
# else:
# for n in range(2, x-1):
# if x % n == 0:
# return False
# return True
# x = int(input("Enter a number and I will tell you if it is a prime"))
# if is_prime(x):
# print(f"{x} is a prime number")
# else:
# print(f"{x} is not a prime number")
item_list = ["Burger", "Hotdog", "Bun", "Ketchup", "Cheese"]
n = 0
while n < 5:
for i in item_list:
print(i)
n += 1
print(item_list[4])