Created
May 23, 2022 16:33
-
-
Save sshehrozali/31f234655812290bcb4779a05b4bfb11 to your computer and use it in GitHub Desktop.
Empty phonebook program
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
| # MY JOB | |
| # is basically to print all contacts of phonebook on screen | |
| # Its list of contacts // phonebook | |
| phonebook = [] | |
| i = 0 # We are initialization a counter | |
| while i == len(phonebook): | |
| print(f"Contact no. {i + 1}:\t\t {phonebook[i]}") | |
| i = i + 1 # STEPS to increase | |
| # Extra new-line | |
| print("\n") | |
| # Question: What's going on underneath the hood? | |
| # ???? | |
| Segmentation Fault -> Null -> non-existent # Answer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment