+ 1
[Solved]Please help me with this code
so it comes in appear an eof error please check at my code!!! https://code.sololearn.com/cisPoGmb5Do9/?ref=app
23 Answers
+ 2
this should work
https://code.sololearn.com/cZebTV29Ih80/?ref=app
+ 4
You need to do something like this for enter the numbers:
enter= input ()
arrayip=number.split('.')
Then you can enter in a single line the ip separated by . then you can iterate for validate each one of the arrayip values.
+ 3
Bishal Sarang IT WORKED FINALLY AFTER SOME WEEKS THANK YOU!!!
+ 3
i want to thank everyone who helped me with this code especially Bishal Sarang \/Bebida Roja \/ Jorge Sanchez Tamayo \/ Jakob Marley
+ 2
if you are going to use map you need to erase this part of the code:
x= int(input("give the 1st number\n"))
y= int(input("give the 2nd number\n"))
w= int(input("give the 3rd number\n"))
q= int(input("give the 4th number\n"))
and the validation is wrong ej:
X>=0 and X<=255
+ 2
i am preparing a second code and i might release it soon since i have not school and it is simple to build as i think. it is about roman numericals
+ 2
no its ok bro Bebida Roja
+ 1
Note that 127.0.0.1 is not an accepted ip in your code because 0 < 0 is not true
+ 1
While giving input in code playground, you're supposed to give inputs into separate lines.
Input separated by space also throws error in your code.
For your case :
1
2
3
4
This should work
+ 1
can you showcase it to me?
+ 1
Do not hesitate on learning. If you are interested you will love every aspect of learning. Everyone starts from somewhere.
+ 1
Search "python color coding" in google. You will find good info there.
+ 1
For console : https://stackoverflow.com/questions/287871/print-in-terminal-with-colors
Better idea is learning GUI. Python offers tkinter module for gui
+ 1
Go for it! :)
+ 1
Before I said "wow" because you reminded me of myself when I was starting to learn to code. I didnt mean to hurt your feelings xLeva. Sorry if I did.
+ 1
Bebida Roja take a look at my new code!!!
0
so... do i have to combine them? Bishal Sarang
0
Yeah you can use map to read input in a single line
Sth like this :
a, b, c, d = map(int, input().strip().split())
0
Bishal Sarang is it correct now?
0
wait to check it a min