Mendelevium 101
@Mendelevium
This program creates a workout for you. You type in the attributes and it gives you a work out based on the attributes. If you don’t know what to do i
Python
Kai_Justice If you want the workouts to be fully random something like this would work :
import random
print(str(random.randint(1,3)) + " laps")
or if you want to keep the presets you could change line 104, 111, 118, 125, 132, 140 to an elif statement.3 years ago
Maybe I am crazy, but I can’t figure out a way to make the code repeat. I’ve tried everything!
Does anyone know how to do this?
Python
iPenguin https://repl.it/@iPenguin/rock-paper-scissors
All you need is a while true loop. This makes it so that it will repeat the code if [yes]. Other examples of the while loop are (repeat if [variable is greater than 12]). The link above is a fork I made with the loop. Nothing else is changed except for typos ("ebter," etc.)3 years ago
Hello,
I’ve been working on a simple game, when it occurred to me:
I don’t know how to make a random number generator in python!
I’ve looked it up, bu
Pepper100 try this
import random
number = random.ranint(5, 15)
This code will generate a random number between 5 and 15. you can change these two numbers to suit you.
It will also save the selected number under the variable,"number".
you can change this by changing wheere it says number at the start of the code. you can chek the number saved by using this line of code.
print(number)
again, if instead of using number as your variable, you can change it whenever you like, and put that in the brackets o3 years ago
Check out this repl to see some neat word art! If you have word art of your own, please put it in the comments and I will add it to this program!
Python
Are you an artist?
Do you like word art?
Well, search no more, for this repl is just for you!
Create your word art and screenshot it and put in the co
Python
Click enter to see some cool word art!
Add your word art to the comments if you want me to add it to the REPL.
If you have any suggestions please tell
Python
Guess what? Artificial intelligence is starting to make its own art.
I don’t know why I think this is so cool, but here are a few pictures and a link
Zavexeon Hey there, please don't post in Announcements. If you'd like to share something, it's only natural you put it in the Share board. Thanks. ^w^
(I moved this to share for you)3 years ago
Hi, I've looked up different ways to add python to HTML, but none seem to work. Does anyone know how to add python into an HTML page?
AustinBPark what I would do is embed a repl.it output or use an iframe. But i dont think that works with graphics libs.3 years ago