Commit 925761ad by BellCodeEditor

save project

parent 460f102f
Showing with 30 additions and 0 deletions
dict = {}
def new_input():
global dict
while True:
num = input("num:")
if num in dict.keys() or num == :
print("crazy?")
continue
if num == "wanshi":
break
try:
score = int(input("score:"))
except:
print("stupid?")
continue
dict[num] = score
print(dict)
def sum_():
global dict
x = 0
for v in dict.values():
x += v
print(x)
new_input()
sum_()
\ No newline at end of file
import bros
n = bros.new_input()
s = bros.sum_()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment