[Solved]Please help me with this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

3rd Apr 2018, 7:23 PM
Nikos Semertzidis
Nikos Semertzidis - avatar
23 Answers
3rd Apr 2018, 7:48 PM
Bishal Sarang
Bishal Sarang - avatar
+ 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.
3rd Apr 2018, 7:33 PM
Jorge Sanchez Tamayo
Jorge Sanchez Tamayo - avatar
+ 3
Bishal Sarang IT WORKED FINALLY AFTER SOME WEEKS THANK YOU!!!
3rd Apr 2018, 8:01 PM
Nikos Semertzidis
Nikos Semertzidis - avatar
+ 3
i want to thank everyone who helped me with this code especially Bishal Sarang \/Bebida Roja \/ Jorge Sanchez Tamayo \/ Jakob Marley
3rd Apr 2018, 8:12 PM
Nikos Semertzidis
Nikos Semertzidis - avatar
+ 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
3rd Apr 2018, 7:46 PM
Jorge Sanchez Tamayo
Jorge Sanchez Tamayo - avatar
+ 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
3rd Apr 2018, 8:16 PM
Nikos Semertzidis
Nikos Semertzidis - avatar
+ 2
no its ok bro Bebida Roja
3rd Apr 2018, 8:29 PM
Nikos Semertzidis
Nikos Semertzidis - avatar
+ 1
Note that 127.0.0.1 is not an accepted ip in your code because 0 < 0 is not true
3rd Apr 2018, 7:28 PM
Bebida Roja
Bebida Roja - avatar
+ 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
3rd Apr 2018, 7:28 PM
Bishal Sarang
Bishal Sarang - avatar
+ 1
can you showcase it to me?
3rd Apr 2018, 7:34 PM
Nikos Semertzidis
Nikos Semertzidis - avatar
+ 1
Do not hesitate on learning. If you are interested you will love every aspect of learning. Everyone starts from somewhere.
3rd Apr 2018, 8:04 PM
Bebida Roja
Bebida Roja - avatar
+ 1
Search "python color coding" in google. You will find good info there.
3rd Apr 2018, 8:07 PM
Bebida Roja
Bebida Roja - avatar
+ 1
For console : https://stackoverflow.com/questions/287871/print-in-terminal-with-colors Better idea is learning GUI. Python offers tkinter module for gui
3rd Apr 2018, 8:07 PM
Bishal Sarang
Bishal Sarang - avatar
+ 1
Go for it! :)
3rd Apr 2018, 8:20 PM
Bebida Roja
Bebida Roja - avatar
+ 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.
3rd Apr 2018, 8:27 PM
Bebida Roja
Bebida Roja - avatar
+ 1
Bebida Roja take a look at my new code!!!
7th Apr 2018, 8:38 AM
Nikos Semertzidis
Nikos Semertzidis - avatar
0
so... do i have to combine them? Bishal Sarang
3rd Apr 2018, 7:30 PM
Nikos Semertzidis
Nikos Semertzidis - avatar
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())
3rd Apr 2018, 7:35 PM
Bishal Sarang
Bishal Sarang - avatar
0
Bishal Sarang is it correct now?
3rd Apr 2018, 7:38 PM
Nikos Semertzidis
Nikos Semertzidis - avatar
0
wait to check it a min
3rd Apr 2018, 7:55 PM
Nikos Semertzidis
Nikos Semertzidis - avatar