File: confirm_amazed.py

package info (click to toggle)
python-questionary 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 960 kB
  • sloc: python: 3,917; makefile: 66
file content (9 lines) | stat: -rw-r--r-- 229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import questionary

if __name__ == "__main__":
    confirmation = questionary.confirm("Are you amazed?").ask()

    if confirmation:
        print("That is amazing! 💥🚀")
    else:
        print("That is unfortunate 🐡.")