Skip to content

Instantly share code, notes, and snippets.

@sshehrozali
Created May 30, 2022 16:42
Show Gist options
  • Save sshehrozali/3471a3965cb6b456a3636d3f72d6fc04 to your computer and use it in GitHub Desktop.
Save sshehrozali/3471a3965cb6b456a3636d3f72d6fc04 to your computer and use it in GitHub Desktop.
i = 0
# DO NOT TOUCH HERE #
# DO NOT TOUCH HERE #
phonebook_names = ["emma", "aly", "jackson"]
phonebook_numbers = ["455-111-222", "455-666-888", "455-333-555", "455-333-871"]
# DO NOT TOUCH ABOVE THIS LINE #
# DO NOT TOUCH ABOVE THIS LINE #
# We are actually printing names with their numbers
if len(phonebook_names) == len(phonebook_numbers):
# YOUR HOMEWORK
# TO DO
while i < len(phonebook_names):
print(f"Contact Name: \t{phonebook_names[i]}\t\tNumber: \t{phonebook_numbers[i]}")
i = i + 1
else:
print("You did a mistake!")
# I will be firstly checking for correct
# Check if the name != null?
# Do something
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment