Удалить kal.py

This commit is contained in:
RayskayaA 2025-11-23 14:55:28 +00:00
parent 97facb2c78
commit b7b19074f1

22
kal.py
View File

@ -1,22 +0,0 @@
def summa(datas_nums):
a=0
for i in datas_nums:
a+=int(i)
return a
def multiply(datas_nums):
a=1
for i in datas_nums:
a=a*int(i)
return a
datas=str(input("write numbers: "))
datas_splitted=datas.split()
choice=str(input("+ or x"))
if choice =="+":
print(summa(datas_splitted))
elif choice =="x":
print(multiply(datas_splitted))
else:
print("Error try again")