Find Jobs
Hire Freelancers

Small Python Project (3)

$10-30 USD

已完成
已发布超过 5 年前

$10-30 USD

货到付款
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.
项目 ID: 17825450

关于此项目

2提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hello, I am experienced excel expert. I can help with this task with quick turnaorund. Looking to hearing from you. Kind regards
$30 USD 在1天之内
4.9 (68条评论)
6.0
6.0
2威客以平均价$28 USD来参与此工作竞价
用户头像
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 在1天之内
5.0 (2条评论)
3.8
3.8

关于客户

UNITED STATES的国旗
Austin, United States
5.0
3
付款方式已验证
会员自9月 17, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。