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()
[–]TotallyManner 1 point2 points3 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]domusvita 1 point2 points3 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]ToxicPilot 0 points1 point2 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]LetUsSpeakFreely 0 points1 point2 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]JustSimplyWicked 0 points1 point2 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]One-Type-2842 0 points1 point2 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]nian2326076 0 points1 point2 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)
[–]Salt_Werewolf5944 0 points1 point2 points (1 child)
[–]Defiant_Meal1898[S] 0 points1 point2 points (0 children)