- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.py
More file actions
Latest commit
35 lines (26 loc) · 727 Bytes
/
Copy pathfunctions.py
File metadata and controls
35 lines (26 loc) · 727 Bytes
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
# Imports
importos
importtime
importjson
importcsv
# Funcs
defclear():
returnos.system("cls")
defwait(s):
returntime.sleep(s)
defmulti_menu(*texts):
fori, optioninenumerate(texts, start=1):
print(f"{i}.- {option}")
# Example Functions
defsumar():
num1=int(input("Ingresa tu primer numero: "))
num2=int(input("Ingresa tu segundo numero: "))
returnprint(num1+num2)
defrestar():
num1=int(input("Ingresa tu primer numero: "))
num2=int(input("Ingresa tu segundo numero: "))
returnprint(num1-num2)
defmultiplicar():
num1=int(input("Ingresa tu primer numero: "))
num2=int(input("Ingresa tu segundo numero: "))
returnprint(num1*num2)