Thursday, January 16, 2020

Uber-Importante: Print Formatting Lesson

Project01 Mad Libs Story Game - Introduction

  • Using Python, you will use variables, inputs/outputs, and printing to create a Mad Libs story game. You will need to plan out your Mad Lib before implementing it.
  • Mad Libs are a fun way to tell a story. The story is pre-written except for a few words. The user fills in the words before seeing the story. Then the story is read off with the user’s words mixed in!
  • Review Mad Libs Rubric
  • Name your project proj01MadLibs-vrs01.py
  • MadLibs Teacher Demo - Cloud09 file proj01MadLibs-vrs01.py

  Due Tuesday:  Jan 21, 2020 


Unit 01 Review for Quiz (refer back to the posted lessons and readings)


Definitions
  • Define: IDE, Python
  • Define: interpreter, string, integer, float, value, errors, console, expression
  • Define: script, print, run, output, variable
  • Define: comments, variable assignment, input
  • Review Assigned Readings and Slides
Skills:
  • Variable assignments
         x = 5
  • print statements with numbers
         
    print(x)
  • print statements with strings
         
    print ("The cat's name is ")
  • print statements with string concatenation     cat_name = 'Garfield'
         print("The cat's name is " + cat_name + '.')
  • Know how to use input. Know that the argument of input as well as the user's response is a string. 
 
          twoGuys = input('Who are those two guys?')
          print(twoGuys)                # Prints the user's response
          print( type(twoGuys) )    # str type
                userNumber = input("Feed me a delicious integer.")
                print(userNumber)             # Prints the user's response
                print( type(userNumber) ) # still a str type !!!
         

      No comments:

      Post a Comment

      Blog information move to Google Doc

      Hello All, Moving forward, please find all information about the class that you used to find on a live google doc agenda. The link is foun...