Dyskusje Q&A
Saves?
0 głosów
3 odpowiedzihow 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 głosów
3 odpowiedziPopularne dzisiaj
How to improve code readability
0 Votes
Functions
1 Votes
App
0 Votes
I NEED to make a game
0 Votes
Grouping data is not working
0 Votes
Please help with the output
0 Votes
Use of flag
0 Votes
Mentor
0 Votes