Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 17331

Registrate new "todos" or tips to make my little program better

$
0
0

I have a small problem with my programme, where I have a small ToDo list code. Namely, I want the while loop to integrate the other todos and the result looks like this:


□ task1(I)□ task2(II)□ task3(III)

The current code:

info = print("!: Ausgabe mit Stop beenden")todo = input("Todo: ")prio = input("Priorität: ")request = input("Noch eine Todo? y/n")while request == "y":    todo = input("Todo: ")    prio = input("Priorität: ")    request = input("Noch eine Todo? y/n")print("-----------------------------------")print("□"+todo+"("+prio+")")print("-----------------------------------")

I tried to create other variables myself, but that didn't work so well, because only this variable from the while loop is integrated and others (if others are to be registered) are not.


Viewing all articles
Browse latest Browse all 17331

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>