BETA
Blocky Banana
15
A code that uses print and if then else with elifs. Also my first code. Here's the link>https://repl.it/@Pepper100/Whats-your-name
My code is a random number generator that takes an indented ridiculously long time to use. https://repl.it/@Pepper100/RNG2-Backup#main.py I have tried
Python
Coder100 Ohh!! On line 16 you forgot closing parentheses!!
Really small mistake happens to the best of us!
Working repl:
https://repl.it/@Coder100/Random-Number-Generator-2-sol-for-pepper2 years ago
1
My code is designed to select a skin out of a list that you give it. It will ask you how many skins you have or want to use, and then it will ask you
Python
VulcanWM I made a fixed version of your repl. Click here to view it.
What I did different to your repl was, that I added the line skinsamount = int(input()) instead of skinsamount = input(). That means that the answer is an integer instead of a string, so you don't need to do int(skinsamount), and can just do skinsamount.
In the loop line, I wrote for i in range(skinsamount):, instead of for range in (0,int(skinsamount)):, so the loop runs as many times as the person wanted to enter their skins.
> Mark 2 years ago
DEMONul1234 Not sure what you want, but if you want to be asked it ONCE: look at this:
import time
from random import choice
skins = []
print("Welcome to the Fortnite Skin Selector!")
time.sleep(3)
print("How many skins do you have that you want to randomly have selected. Please use number not words!")
skinsamount = input()
for range in (1,int(skinsamount)):
print("Name a skin.")
skinname = input()
skins.append(skinname)
print("")
print("All skins have been added, selecting skin in 5")
time.sle2 years ago
1
I've made 50 thousand random generators and for months I've been bored out of my element. What should I make, this could be something slightly practic
InvisibleOne What languages do you currently know? Maybe you should try learning another one11 months ago