# -*- coding: utf-8 -*- """ Created on Tue Feb 5 11:43:11 2019 Exercises to go over: @author: achuang """ def greater_than_a(): """ What do you think this code does? Are there any bugs? """ a = 60 b = input("Input a number between 1 and 100\n") b = int(b) if ba: print("You entered a higher number") if b==a: print("You are correct!") def vowle_or_consonant(): """ Ask the user to input a single letter and print out whether it is a vowle or consonant. What do you think "y" should be? """ userLetter = input("Enter a letter\n") print(userLetter) if(userLetter=="a"):#comparing if they are the same print("You entered a vowel") def name_that_shape(): """ Ask the user to input a number of sides and print out what shape it is. Such as 3 is a triangle and 4 is a square. Do this up to 12 sides. tri, square, pentagon, hexagon """ numSides = input("How many sides does your shape have?\n") #YOUR CODE HERE def guess_number(): """ Ask the user to guess a number, see if it is the same as the one to guess. If not, give clues such as if the number is higher or lower to help the user guess next time """ numberToGuess = 42 userGuess = input("What number am I thinking of?") #YOUR CODE HERE def order_book(): """ A shop has a stock of workbooks that cost $5 each and it has a stock of 200 The user inputs a quantity and the price of the order, print out if it's a valid order Extension:For invalid orders, print out feedback to the user """ bookPrice = 5 stock = 200 orderNumber = input("How many books would you like to order?") orderTotal = input("How much are you paying?") #YOUR CODE HERE print("This code is currently broken");