Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
from Check import checky
def Phone():
rpy = input("Hello user, what's your name?")
choice = int(input("Hello "+rpy+", what do you want to talk about?\n1. The Weather\n2. Video Games\n3. Phones\n"))
if choice == 1:
weather_responce = input("")
if choice == 2:
vid_choice = input("Whats your favourite video game?")
if choice == 3:
phone_choice = input("What do you prefer Android or Ios?")
s = phone_choice
print(s.lower())
phone_choice = input("Not a bad choice but to be honest, they are both great platforms. "
"I'm more of a android person.\nHave you ever used the music App?")
if phone_choice == "yes" or phone_choice == "YES" or phone_choice == "yeah" or phone_choice == "yeah":
App = input("Nice! What other Apps do you like? Any specific Apps?")
if App == "Music" or App =="Facebook" or App =="Instagram" or App =="Snapchat" or App =="whatsapp" or App == "music" or App =="facebook" or App =="instagram" or App =="snapchat" or App =="whatsapp":
questions = input("Not bad, that app is quite reliable. I'm more into Twitter myself\n Could you answer 2 more questions for me?")
if questions == "yes" or questions == "no" or questions == "Yes" or questions == "No":
print()
elif questions == "no" or "No" :
print ("Thank you for your time you may end the chat now.")
if questions == "yes" or "Yes" :
print ("fantastic lets proceed to the questions")
nation = input("Are we becoming a mobile/smartphone driven nation Yes or No?")
if nation == "yes" or nation == "Yes" :
print ("I agree as 62.9 percent of the population in the world already owned a mobile phone this percentage is only going up!")
x = input("Has the number of cheating cases among students increased or decreased in your community? ")
if x == "increased" or x == "decreased" or x == "Increased" or x == "Decreased":
print ("I believe that cheating has increased it is now statistically quoted that 20 to 28 percent of people cheat.")
elif nation == "no":
print("thank you for your opinion")
option = int(input("We are now going to move on to Mobile Phones hardware equitment here are the 3 sections please choose one\n1. Cameras\n2. Powerbanks\n3. Smartphone cases"))
option = int(input("We are now going to move on to Mobile Phones hardware equitment here are the 3 sections please choose one\n1. Cameras\n2. Powerbanks\n3. Smartphone cases"))
if option == 1:
Cameras = input("Which do you think is better wide angle or telephoto Lenses?")
if Cameras == "wide angle" or Cameras == "telephoto Lenses" or Cameras == "Wide" or Cameras == "Telephoto" or Cameras == "wide" or Cameras == "telephoto":
print ("Please make sure you enter only one of the options")
used = input("They are both excellent lenses it really does depend on what you are going to be used for. which do you think are used in our mobile phones?")
if Cameras == "wide angle" or Cameras == "telephoto Lenses" or Cameras == "Wide" or Cameras == "Telephoto" or Cameras == "wide":
input("Good try, but do you know the mobile phone lense is made up of serveral different layers lesnes.\n why do you think cameras are starting to improve on how well they can take photos?")
print ("Yes, that could be one option however")
elif option == 2:
powerbank = input("Did you know that powerbanks only can be used from 200 to 1000 times ")
powerbanks
if option == 3:
Smartphone = input("Smartphone accessory are currently on high demands, they are currently worth")
import urllib.request, json
#Google MapsDdirections API endpoint
endpoint = 'https://maps.googleapis.com/maps/api/directions/json?'
api_key = 'AIzaSyB39abG_ey_p_KzMCSzqjYsNjSG1NPK_r4'
#Asks the user to input Where they are and where they want to go.
origin = input('What is your current destination?: ').replace(' ','+')
destination = input('Please enter the city of where you want to go?: ').replace(' ', '+')
#Building the URL for the request
nav_request = 'origin={}&destination={}&key={}'.format(origin,destination,api_key)
request = endpoint + nav_request
#Sends the request and reads the response.
response = urllib.request.urlopen(request).read()
#Loads response as JSON
directions = json.loads(response)
print(directions)