Skip to content

Instantly share code, notes, and snippets.

@sshehrozali
Created May 23, 2022 16:33
Show Gist options
  • Save sshehrozali/31f234655812290bcb4779a05b4bfb11 to your computer and use it in GitHub Desktop.
Save sshehrozali/31f234655812290bcb4779a05b4bfb11 to your computer and use it in GitHub Desktop.
Empty phonebook program
# 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