-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.py
More file actions
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
import os
import time
import json
import csv
# Funcs
def clear():
return os.system("cls")
def wait(s):
return time.sleep(s)
def multi_menu(*texts):
for i, option in enumerate(texts, start=1):
print(f"{i}.- {option}")
# Example Functions
def sumar():
num1 = int(input("Ingresa tu primer numero: "))
num2 = int(input("Ingresa tu segundo numero: "))
return print(num1 + num2)
def restar():
num1 = int(input("Ingresa tu primer numero: "))
num2 = int(input("Ingresa tu segundo numero: "))
return print(num1 - num2)
def multiplicar():
num1 = int(input("Ingresa tu primer numero: "))
num2 = int(input("Ingresa tu segundo numero: "))
return print(num1 * num2)