
import requests

url_host = "https://dog.ceo"
endpoint = "/api/breeds/list/all"
query = ""

url = url_host + endpoint # + query

response = requests.get(url)
breeds = response.json()["message"]

# get a list of all breeds from the API call
all_breeds = breeds.keys()

# loop and print out each key
for breed in all_breeds:
  print(breed)

# Get a list of all subbreeds of a breed with at least 3 sub-breeds
# but NOT bulldogs
# Examples include: poodles, retrievers, terriers, mastiffs, spaniels, setters, & more

#Display examples of breeds available for user input
print("for examples try bulldog, poodle, retriever, terrier, mastiff, spaniel, and setter, for more try others listed above")

#repeats code within the loop and counts the loop
for i in range(1,4,1):
  print(i)

  #Uses the user input to insert a subreed
  requested_subbreeds = breeds[input("\nEnter a breed to find a available subreeds(no caps) = ")]

  #Uses the user input and picks out a breed related to that input, then inserts the 
  #avaiable subreeds.
  for sub in requested_subbreeds:
    print(sub)

print("Thank you for testing this program")

34b560f70cf1b7971eba60a825e11f1a7e608463
<mask token>

<mask token>
for breed in all_breeds:
    print(breed)
print(
    'for examples try bulldog, poodle, retriever, terrier, mastiff, spaniel, and setter, for more try others listed above'
    )
for i in range(1, 4, 1):
    print(i)
    requested_subbreeds = breeds[input(
        '\nEnter a breed to find a available subreeds(no caps) = ')]
    for sub in requested_subbreeds:
        print(sub)
print('Thank you for testing this program')

<mask token>
url_host = 'https://dog.ceo'
endpoint = '/api/breeds/list/all'
query = ''
url = url_host + endpoint
response = requests.get(url)
breeds = response.json()['message']
all_breeds = breeds.keys()
for breed in all_breeds:
    print(breed)
print(
    'for examples try bulldog, poodle, retriever, terrier, mastiff, spaniel, and setter, for more try others listed above'
    )
for i in range(1, 4, 1):
    print(i)
    requested_subbreeds = breeds[input(
        '\nEnter a breed to find a available subreeds(no caps) = ')]
    for sub in requested_subbreeds:
        print(sub)
print('Thank you for testing this program')

import requests
url_host = 'https://dog.ceo'
endpoint = '/api/breeds/list/all'
query = ''
url = url_host + endpoint
response = requests.get(url)
breeds = response.json()['message']
all_breeds = breeds.keys()
for breed in all_breeds:
    print(breed)
print(
    'for examples try bulldog, poodle, retriever, terrier, mastiff, spaniel, and setter, for more try others listed above'
    )
for i in range(1, 4, 1):
    print(i)
    requested_subbreeds = breeds[input(
        '\nEnter a breed to find a available subreeds(no caps) = ')]
    for sub in requested_subbreeds:
        print(sub)
print('Thank you for testing this program')


import requests

url_host = "https://dog.ceo"
endpoint = "/api/breeds/list/all"
query = ""

url = url_host + endpoint # + query

response = requests.get(url)
breeds = response.json()["message"]

# get a list of all breeds from the API call
all_breeds = breeds.keys()

# loop and print out each key
for breed in all_breeds:
  print(breed)

# Get a list of all subbreeds of a breed with at least 3 sub-breeds
# but NOT bulldogs
# Examples include: poodles, retrievers, terriers, mastiffs, spaniels, setters, & more

#Display examples of breeds available for user input
print("for examples try bulldog, poodle, retriever, terrier, mastiff, spaniel, and setter, for more try others listed above")

#repeats code within the loop and counts the loop
for i in range(1,4,1):
  print(i)

  #Uses the user input to insert a subreed
  requested_subbreeds = breeds[input("\nEnter a breed to find a available subreeds(no caps) = ")]

  #Uses the user input and picks out a breed related to that input, then inserts the 
  #avaiable subreeds.
  for sub in requested_subbreeds:
    print(sub)

print("Thank you for testing this program")
