Skip to content
Sign upLog in
← Back to Community

Whats your name

Profile icon
Pepper100

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

Voters
Profile icon
MohammadAlameri
Profile icon
NooraghaNowrozi
Profile icon
HopeJohn
Profile icon
SamTeisch
Profile icon
gyvrvn
Profile icon
Learn-TheThe
Profile icon
RahimAsfi
Profile icon
WenyueCui
Profile icon
WysdomDavis
Profile icon
HollyTallboy
Comments
hotnewtop
Profile icon
MohammadAlameri

Mohammad hamad

Profile icon
Pepper100

I cant believe it got in the newsletter!!

Profile icon
lukaswoodruff

if you want the names to always be lowercase no matter what then do this if name.lower() == "will" whatever code you wish to add!

Profile icon
Pepper100

@lukaswoodruff
: Handy tip. but if the person entered it in lowercase how would I get the code to say it with a cap at the start? Send me a repl link if you have an idea.

Profile icon
[deleted]

@lukaswoodruff
: No matter what you enter in the input you can always make the name capital in the return statement!

PS I am lukaswoodruff

Profile icon
Pepper100

Got an idea. Send some links for repls and challenge me. I can only use the types of code which is in this post.

Profile icon
replitcode

@pepper100
: ok i will

Profile icon
Pepper100

@replitcode
: Thanks

Profile icon
LardBoi

I can tell you're a beginner, which is great, I like seeing wholesome posts like this.

Profile icon
Pepper100

@lardboi
: Thanks. My cousin who is in year 9 is teaching me JavaScript and I love the lessons. I might consider releasing some of my unfinished repls so everybody can help me with them. What do you think.

Profile icon
[deleted]

@pepper100
: i think that is a great idea!

Profile icon
Pepper100

@kingofpython
: Here is the first one. Follow the pattern and finish the code. Also don't forget to add the code for if the person decides to type 'Random'. Please use the caps tip for the 'random' code bit. The person gets asked two sets of questions. I have done the first set but I don't know how to add the randomiser so you will have to do that. Its a sort of thing that is like a chatbox fortune teller thingy. This is unfinished so it is only accessible though this comment. Now I shall stop babbling on and give you the link. https://repl.it/@Pepper100/Chatbox. if you can't click on it copy and paste it.

Profile icon
replitcode

@kingofpython
: thanks!

Profile icon
LardBoi

@pepper100
: I think you should. I prefer helping people with code than seeing finished products.

Profile icon
Pepper100

@lardboi
: Has anybody got the finished repl link for this project that I need help with?