For the creation of libraries you have to write them inside «{}», and here is a little example: This is my own dictionary, you just have to assign integers to your library. That’s all for my semestre with Ken, may Harambe be with you
Mes: noviembre 2016
Harambe and ranges
There are two ways in which you can use ranges in python: 1st. You’ll just simply write x = range(10) print(x) And it will print all number that goes from 0 to 10. 2nd. You write almost the same thing but: x = range(0,10,2) print(x) This means that the range for x will start in… Continúa leyendo Harambe and ranges
Reading and writing of .txt files
This is a very easy topic, we only need 2 things, a file .txt, and to know the «modes» in which you can open/use the file. These are the ways in which you can use the .txt files: «r» = To read «w» = For writing «a» = For appending Knowing now this, in your… Continúa leyendo Reading and writing of .txt files
Validated users
The main points of this topics, it is to use the functions «try», «except» and «else», and the propourse of this, is to make our program perfect, meaning that it will no crash. We can the user whatever we want, and as long as he answers right, the program will continue. This is an example:… Continúa leyendo Validated users