- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
Latest commit
31 lines (19 loc) · 484 Bytes
/
Copy pathapp.py
File metadata and controls
31 lines (19 loc) · 484 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
defmensajeEnFuncion():#definiendo funciones
print ("Hello wordl!")
print (5+6)
if5+1<10:
print ("6 es menor que 10")
else:
print ("esta pasado")
mensajeEnFuncion()#llamada a la funcion
mensajeEnFuncion()
mensajeEnFuncion()
#Funciones con PARAMETROS
"""Este es otro comentario"""
defsuma(num1,num2):
print("la suma de num1 y num2 es ")
returnnum1+num2
resultado=suma(5,2)
print (resultado)
resultado=suma(4,6)
print (resultado)