My Conversation Program

My Conversation Program

This was the first program (You can run it if you click that 😉 .) I wrote in programming class, and it is my first program I wrote on python. It is a conversation between you the user and the computer.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#Program: Conversation 2.0
#Written by: Jack Tewes
#Started: 8/27/2017
#Last updated: 8/31/2017

#This program has a breif conversation with the user

def main():
  print("""
 ____                                                           __                           
/\  _`\                                                        /\ \__  __                    
\ \ \/\_\    ___     ___   __  __     __   _ __   ____     __  \ \ ,_\/\_\    ___     ___    
 \ \ \/_/_  / __`\ /' _ `\/\ \/\ \  /'__`\/\`'__\/',__\  /'__`\ \ \ \/\/\ \  / __`\ /' _ `\  
  \ \ \L\ \/\ \L\ \/\ \/\ \ \ \_/ |/\  __/\ \ \//\__, `\/\ \ \.\_\ \ \_\ \ \/\ \ \ \/\ \/\ \ 
   \ \____/\ \____/\ \_\ \_\ \___/ \ \____\\ \_\\/\____/\ \__/.\_\\ \__\\ \_\ \____/\ \_\ \_\
    \/___/  \/___/  \/_/\/_/\/__/   \/____/ \/_/ \/___/  \/__/\/_/ \/__/ \/_/\/___/  \/_/\/_/
 ____                                                    
/\  _`\                                                  
\ \ \L\ \_ __   ___      __   _ __    __      ___ ___    
 \ \ ,__/\`'__\/ __`\  /'_ `\/\`'__\/'__`\  /' __` __`\  
  \ \ \/\ \ \//\ \ \ \/\ \ \ \ \ \//\ \ \.\_/\ \/\ \/\ \ 
   \ \_\ \ \_\\ \____/\ \____ \ \_\\ \__/.\_\ \_\ \_\ \_\
    \/_/  \/_/ \/___/  \/___ \ \/_/ \/__/\/_/\/_/\/_/\/_/
                         /\____/                         
                         \_/__/  
    """)
  introduction()
  weather()
  sports()
  tv()
  video_games()
  movies ()
  goodbye()

def introduction() :
    """Asks for the user's name and introduces self"""
    name = input ("What is your name?")
    print ("Hi," , name)
    print ("I am your computer.")
    

def weather() :
    """Talks about the weather."""
    temperature = input ("What is the temperature?")
    print ("ooh it sounds like a good day for a swim")
    

def sports() :
    """Talks about sports"""
    team = input ("What is your favorite professional football team?")
    print ("yay i love the" , team)
    bball = input ("what is your favorite basketball team?")
    if bball == "Lakers":
        print ("Ewwwwwwwwwww")
    else:
     print ("The" , bball , "Are ok.")

def tv() :
    """"Talks about television shows."""
    show = input ("What is your favorite tv show")
    cool = input ("Is that the one about dragons?")
    print ("Oh yeah")
    print ("what is" , show)
    awesome = input ("about?")
    print ("That sounds cool!")

def video_games() :
    """Talks about video games."""
    do_you = input ("Do you play any video games?")
    if do_you == "yes":
        print ("yay, i do too!")
    if do_you == "no":
        print ("i don't like you anymore. Goodbye!")

def movies() :
    """Talks about movies."""
    is_it = input ("Do you like Star Wars?")
    if is_it == "no":
        print ("ok, it is a little weird....")
    if is_it == "yes":
        print ("I know, they are very good movies")

def goodbye() :
    """Says goodbye"""
    marvel = input ("do you like me?")
    if marvel == "yes":
        print ("Good Man")
    if marvel == "no":
        print ("Ok... *cries*")
    print ("Now i have to go, bye")
main()

 

Mail

COMPOSE

More

42 of 97

 
 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.