Find Jobs
Hire Freelancers

Small Python Project (3)

$10-30 USD

Completed
Posted over 5 years ago

$10-30 USD

Paid on delivery
Summary Write a program that asks the user to guess a number between 1 and 50 in as few attempts as possible. The program should count the number of user attempts to guess the number. This program should include a while loop and use the [login to view URL]() function Details: Pseudo Code: Obtain a random number between 1 and 50 and store it in a variable. Create another variable to store the guessed Number. Create third variable to count the number of times it takes the user to guess the number. While the number to guess does not equal the guessed number: Prompt the user to guess a number between 1 and 50. Convert the number to an integer. If the guessed number equals the number to guess, print, "You got it in # attempts", where # is the number of attempts it took to guess the number. Otherwise, if the guessed number is less than the number to guess, print: "Higher" Otherwise, if the guessed number is greater than the number to guess, print: "Lower" Use a main() function.
Project ID: 17825450

About the project

2 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello, I am experienced excel expert. I can help with this task with quick turnaorund. Looking to hearing from you. Kind regards
$30 USD in 1 day
4.9 (68 reviews)
6.0
6.0
2 freelancers are bidding on average $28 USD for this job
User Avatar
Hello, An experienced python developer is here to help you out. I will give you quality product within time frame you'll give to me. Please consider my bid and send details via chat Regards
$25 USD in 1 day
5.0 (2 reviews)
3.8
3.8

About the client

Flag of UNITED STATES
Austin, United States
5.0
3
Payment method verified
Member since Sep 17, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.