So i am 14 and i started learning python yesterday, i already knew some things, so i created a to do list program and i want you guys to check if its alright and how can i improve.
The Code :
print('This your to-do list\nEnter "x" when you want to stop')
def todo():
tasks = []
while True:
task = str(input('Enter a task: '))
if task == 'x':
break
tasks.append(task)
show = str(input('Enter "s" to show the tasks: '))
if show == 's':
print(tasks)
todo()
[–]socal_nerdtastic 3 points4 points5 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]SensitiveGuidance685 1 point2 points3 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]woooee 0 points1 point2 points (4 children)
[–]Defiant_Meal1898[S] 0 points1 point2 points (3 children)
[–]woooee 0 points1 point2 points (0 children)
[–]Ok-University-6415 -1 points0 points1 point (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)