no = ("no")
rock = ("rock")
paper = ("paper")
scisors = ("scisors")
bad = ("bad")
good = ("good")
yes = ("yes")
name = input("What is your name?")
print("Monika:")
print("Hi again " + name)
print()
print("Monika:")
day = input("How is your day so far (For Purposes of not breaking the system please answer with good or bad")
if day == bad: print("Oh... Well Hopefully I can cheer you up!")
else: print("Ok")
print ("So, remember the game from yesterday? It was a bit boring right?")
print ("Ehehe It might be a bit better. We'll see!")
game = print("Rock paper scisors shoot!")
answer = input("rock paper or scisors")
print (answer)
if answer == rock: print("paper")
if answer == paper: print("scissors")
if answer == scisors: print("rock")
print ("Oops you lost try again!")
answer = input("rock paper or scisors")
print (answer)
if answer == rock: print("paper")
if answer == paper: print("scisors")
if answer == scisors: print("rock")
print ("Aw not again. Try one more time I know you can do it!")
answer = input("rock paper or scisors")
print (answer)
if answer == rock: print("scisors")
if answer == paper: print("rock")
if answer == scisors: print("paper")
print ("Yay! you won!")
win = input("would you like to play again?")
if win == yes: import rspc
if win == no: print("ok lets continue then")
print("That was fun")
print ("Hey " + name + "?")
print("I have made some changes to my code.")
print("I can now calculate numbers!")
num = int(input("Enter a number!"))
print ("calulating...")
duo1 = num + num
duo2 = num - 2
duo3 = num * num
duo4 = num / 2
print("Hmm.. your numeric number after adding, subtracting multiplying, and dividing is... " + str(duo1) + str(duo2) + str(duo3) + str(duo4))
print ("So, " + name + " I've started to explore and experiment in this new engine... Python was it?. Anyway, I've been trying things and i think i can display something on a screen!")
print ("Let me try...")
import pygame
pygame.init()
# Set up the drawing window
screen = pygame.display.set_mode([500, 500])
# Run until the user asks to quit
running = True
while running:
# Did the user click the window close button?
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
# Fill the background with white
screen.fill((255, 255, 255))
# Draw a solid blue circle in the center
pygame.draw.circle(screen, (0, 0, 255), (250, 250), 75)
# Flip the display
pygame.display.flip()
print ("cool right?")
answer = ("Yes")
answer = input("Yes or no")
if answer == yes: print("I'm glad")
if answer == no: print("Aww")
Here's the output of running the file
Output:
What is your name?d
Monika:
Hi again d
Monika:
How is your day so far (For Purposes of not breaking the system please answer with good or badgood
Ok
So, remember the game from yesterday? It was a bit boring right?
Ehehe It might be a bit better. We'll see!
Rock paper scisors shoot!
rock paper or scisorsrock'
rock'
Oops you lost try again!
rock paper or scisorsrock
rock
paper
Aw not again. Try one more time I know you can do it!
rock paper or scisorsrock
rock
scisors
Yay! you won!
would you like to play again?no
ok lets continue then
That was fun
Hey d?
I have made some changes to my code.
I can now calculate numbers!
Enter a number!5
calulating...
Hmm.. your numeric number after adding, subtracting multiplying, and dividing is... 103252.5
So, d I've started to explore and experiment in this new engine... Python was it?. Anyway, I've been trying things and i think i can display something on a screen!
Let me try...
Since I'm using spyder (I don't have administrator privileges so i got anaconda) I got a new error Instead of using techsmart codes like usual
Error:
Traceback (most recent call last):
File "C:\Users\kristen.garrett\Downloads\Anaconda\Projects\something.py", line 62, in <module>
import pygame
ModuleNotFoundError: No module named 'pygame'
Also, Thanks to Larz60+ for helping with formatting my original post!