viernes, 4 de septiembre de 2015

WSQ06 - Pick a number

Finally, this WSQ was a little bit for a challenge for me. Mainly because it was my first WHILE loop and the syntax is a little bit different, no "(",")" nor "{","}" and im very used to use them. Now its no problem because I learned to use WHILE loops on this link:
http://www.python-course.eu/python3_loops.php
Its very useful, if you are still having problems be sure to check this put.
Also, the random number generator was tricky, i couldn´t get the syntax well at first but after checking this link I could make it:
https://docs.python.org/3/library/random.html
This is my code

This is my code working
If you want to look at my code in Github here is the link:
https://github.com/Jocapear/TC1014/blob/master/WSQ06.py

No hay comentarios:

Publicar un comentario