Share your repls and programming experiences

← Back to all posts
Hi
Divyo (0)

Hey guys I am looking forward to chat with everyone in the Repl.it community !!!! :D (I am new) This is my first project above!

Voters
Divyo (0)
Commentshotnewtop
ChezCoder (1185)

lol, i got the answer correct but it still said I was wrong :( try using an if loop like so:

if userInput == "200":
    print("You got it!")
else:
    print("Incorrect! It's 200.")

Also, it is good practise to but all the imports at the top of the script. Otherwise, very good first project! If you want to continue learning python, I suggest you use these resources:

Divyo (0)

@ChezCoder Thank you for your advice last night I was thinking about all my errors but forgot to edit them LOL :D the only part that is unclear for me is when you said Also, it is good practice to but all the imports at the top of the script. could you put that in different words?

ChezCoder (1185)

@Divyo basically, if you code was

print ('what do you think 20 x 10 equals')
import time
import math 
userInput = input()
print ('just a moment')
time.sleep(3)
print('the answer is :')
print (10*20)
print ("Not ", userInput)
print ('')

then the imports would go at the top like so:

import time
import math 

print ('what do you think 20 x 10 equals')
userInput = input()
print ('just a moment')
time.sleep(3)
print('the answer is :')
print (10*20)
print ("Not ", userInput)
print (''")
Divyo (0)

@ChezCoder Hmm... Actually that does not work because it thinks that if you press enter it is 200 with an enter space not plane 200

Divyo (0)

@ChezCoder Do you know of or recommend anything because
I am inviting you to work with me please be respectful when you are in it Thank You :)

Divyo (0)

@ChezCoder Ok thank you I just went in and fixed that also sorry about deleting your code before this, you know the code with making the print a different color? Could you please add that back? Also could you give me a key of all the colors so I could use that for further coding? Thanks! Lastly do you want to make a time to do some coding together? I can tell you that 3:00 on a friday works for me does it work for you? Few that was a long message :D

Divyo (0)

@ChezCoder Thank you for all your work with me now I am going to delete this post because I have deleted this project because I have found something else I would like to work on. Again thank you for all your work and for colab.ing with me!!!

Divyo (0)

@ChezCoder oh wait never mind I am not going to delete these comments because I don't know how to LOL!

ChezCoder (1185)

@Divyo lol, your welcome :D hope your future is bright