Sesiones de PyR
If-else problem
1 Voto
6 RespuestasWhat's wrong?!
2 Votos
3 RespuestasWhat’s this error
-1 Voto
10 RespuestasJob at young age?
0 Votos
7 Respuestashow do I get line breaks?
name = input("What is your name?:")
print("Hiya, " + name)
age = int(input("Tell me your age:"))
year = str((2016 - age) + 100)
num = int(input("Enter a number between 1 and 50:"))
line = str((name + " will be 100 in the year " + year) * num)
print(\n line)
2 Votos
3 RespuestasHello can you help me?
0 Votos
3 RespuestasHow can I read from a file this line
19 34 Gateway Arch - St. Louis, MO.
The first digit is age, second timeUsed, and the rest description. So I want to read them and store them in a variable.
The code insime my while loop of my File is int age = reader.nextInt();
Int Tused = reader.nextInt();
Description = reader.next()
0 Votos
4 RespuestasEn tendencia hoy
Time up code for data revision
0 Votes
Best Python Calculator Code
1 Votes
Animation
2 Votes
New code
1 Votes
Clean Code
2 Votes
PHP
1 Votes