Skip to content

Instantly share code, notes, and snippets.

@TheMuellenator
Forked from angelabauer/main.py
Last active January 24, 2024 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save TheMuellenator/d371250741a7cadbf250574fc50b7761 to your computer and use it in GitHub Desktop.
Save TheMuellenator/d371250741a7cadbf250574fc50b7761 to your computer and use it in GitHub Desktop.
Solution for main.py for the Flight Club
import sheety
print("Welcome to Angela's Flight Club.\n \
We find the best flight deals and email them to you.")
first_name = input("What is your first name? ").title()
last_name = input("What is your last name? ").title()
email1 = "email1"
email2 = "email2"
while email1 != email2:
email1 = input("What is your email? ")
if email1.lower() == "quit" \
or email1.lower() == "exit":
exit()
email2 = input("Please verify your email : ")
if email2.lower() == "quit" \
or email2.lower() == "exit":
exit()
print("OK. You're in the club!")
sheety.post_new_row(first_name, last_name, email1)
@codyhartbihsdihf
Copy link

for me replit says that sheety is not an actual thing i can import

@cybertrucklife
Copy link

for me replit says that sheety is not an actual thing i can import

you have to create another python file first, it should be called sheety.py
in that file you should have the code for posting a new row to your sheet in sheety.
the solution is this one, and this code is what should be in your sheety.py file : https://gist.github.com/angelabauer/9ed3a297c0c28bb0821bf7bb55f62684

you should then be able to have import sheety in your main.py work and you can use the command sheety.post_new_row in the solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment