This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| primes provide a very simple iterator that's able | |
| to generate all the prime numbers! | |
| This is for teaching purposes only. | |
| """ | |
| class Primes: | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Data are bits | |
| Numbers can be written as bits | |
| Therefore, any data can be written as a number | |
| Here is a small playground | |
| """ | |
| def text_to_int(filename): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class User: | |
| """ | |
| User class | |
| It has some methods and properties to simulate the functions | |
| of a regular class. | |
| """ | |
| def __init__(self, first_name, last_name, email, password): | |
| self.first_name = first_name | |
| self.last_name = last_name |
OlderNewer