Spaces:
Runtime error
Runtime error
ygujvujgbjugyu
commited on
Commit
•
877927e
1
Parent(s):
1629b4b
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
variable_normal = input("En or Es: ")
|
3 |
+
variable= variable_normal.lower()
|
4 |
+
#^En
|
5 |
+
if variable == "en" :
|
6 |
+
horas = float(input("insert the hours that work in a year: "))
|
7 |
+
paga_h = float(input("insert how much you get paid for hour of work(dot insted of comma): "))
|
8 |
+
sueldo = horas * paga_h
|
9 |
+
pagas = float(input("insert how many payments in a year: "))
|
10 |
+
moneda = input("insert the symbol of the current of you country: ")
|
11 |
+
print("your payment in a year is:", sueldo,moneda)
|
12 |
+
print("Your pay in the payments that you have is: ", sueldo / pagas, moneda )
|
13 |
+
|
14 |
+
#*ES
|
15 |
+
elif variable == "es":
|
16 |
+
horas = float(input("Introduce tus horas de trabajo anuales: "))
|
17 |
+
paga_h =float(input ("Introduce lo que cobras por hora(tiene que estar con un punto en vez de una coma): "))
|
18 |
+
sueldo = horas * paga_h
|
19 |
+
pagas = float(input("intoduce cuantas pagas tienes al año: "))
|
20 |
+
moneda = input("intoduce la moneda que utilizas: ")
|
21 |
+
print("Tu sueldo anual es:", sueldo,moneda)
|
22 |
+
print("Tu sueldo de las con las pagas es: ", sueldo / pagas, moneda )
|