Learn to Code via Tutorials on Repl.it!

← Back to all posts
Make an actual form in your console with Python!
pyzard

Hey! I recently posted about my repl "Form in Console" and said it could be used to make forms in your console. Technically, it wasn't a form being outputted by the program, so I took its code and made this version which is actually a form! Hope it's useful!

NOTES: In the qs list, each element is a list consisting of three values. They are, the question itself as a str, the number of underscores to be displayed while asking the questions as an int, and the type the answer should be converted to as a type. This information should help while trying to use this code in your own program.

Voters
cdCreepArghhh
squidcoder
ch1ck3n
VulcanWM
pyzard
Comments
hotnewtop
SomeBoyPlayz

this is cool ima fork it and edit

SomeBoyPlayz

@pyzard edited version :D

pyzard
pyzard

@SomeBoyPlayz cool form

SomeBoyPlayz

@pyzard thank you :D

if you know HTML stuff I need help with some good CSS

pyzard

@SomeBoyPlayz i'm good with html and js but idk that much css, you can ask my friend @ShyamBabu1

edit: just msged him

SomeBoyPlayz

@pyzard ok do you know how to do neat html buttons? thats all is required ill search up the CSS myself

pyzard

@SomeBoyPlayz i would normally use a button tag and then either add bootstrap or some styling from w3schools

ShyamBabu1MOM
SomeBoyPlayz
VulcanWM

Nice! I love the way the dashes come and go

pyzard

@VulcanWM

@pyzard sent a file.
Thank You v2.app.zip

lol

VulcanWM

np! yeah lmao @pyzard

pyzard

ok yea that was lame

SomeBoyPlayz

@pyzard

@SomeBoyPlayz Sent a file.
100 Updoots.exe
Click to download

SomeBoyPlayz

lol :D