CST
Assign3

# Assign3 - Wojciehowski 1 Assignment 3 CST100Assignment3...

• Homework Help
• 4

This preview shows pages 1–2. Sign up to view the full content.

Wojciehowski Assignment 3 CST 100 Assignment 3 4/4/2016 Notes: I’m not sure where I’m supposed to get the input from the user in Part 2, and then how to manipulate it with the functions I’ve defined. I can’t seem to get Python to tell me or any of the lectures’ spaces to work with code to tell me where the problem is, in what line, or what the error is. They just ask for the input… then stop. HELP! Part I Source Code: Random Number Guessing Game #Assignment 2 #Random Number Game #Name: Brittany Wojciehowski import random #random number module numAttempts = 0 #Number of attempts print("Hey There! What's your name?") userName = input() number = random.randint(1, 20) print("Hello", userName, ", I am thinking of a number between 1 and 20.") while numAttempts < 3: #Establishing number of attempts allowed print("Give me a guess!") guess = input() guess = int(guess) numAttempts = numAttempts + 1 if guess < number: #If guess is too low print("Your guess is too low.") if guess > number: #If guess is too hight print("Your guess is too high.")

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Fall '15
• #, Rock-paper-scissors, #random, Brittany Wojciehowski

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern