Learn to Code via Tutorials on Repl.it!

← Back to all posts
🔑 GetKey Function Tutorial 🔑
[deleted]

🔑 GetKey Function Tutorial 🔑

Hope you are enjoying school

Importing

For the getkey part, you don't need to do what I did. Name it whatever you want.

Name your getkey[or whatever the name is] function

Ending

Now since you have your function ready, do whatever you want with it here is a thing you can do:

I hoped you enjoyed the tutorial! [email protected]

Voters
TsunamiOrSmth
Comments
hotnewtop
Bookie0

well that was short lol.. perhaps include a program with explanation? :)

[deleted]

@Bookie0 okay added some explanation in the program

Bookie0

@XThacker what does os.system('clear') do? and what do you mean importing something as something? and what does the else do?

ofc I know those, but imagine those who don't. ;)

[deleted]

@Bookie0 k, fixed.

Bookie0

great @XThacker

[deleted]

@Bookie0 thanks

Bookie0

yep! @XThacker

[deleted]

@Bookie0 not related How did you get 5061 cycles?!

Bookie0

@XThacker How did you get 42? It's cycles earned with my posts/comments/answers I've made.
And I recently made this tutorial.