Find Jobs
Hire Freelancers

Small Python Project (3)

$10-30 USD

Terminado
Publicado hace más de 5 años

$10-30 USD

Pagado a la entrega
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 del proyecto: 17825450

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 6 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hello, I am experienced excel expert. I can help with this task with quick turnaorund. Looking to hearing from you. Kind regards
$30 USD en 1 día
4,9 (68 comentarios)
6,0
6,0
2 freelancers están ofertando un promedio de $28 USD por este trabajo
Avatar del usuario
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 en 1 día
5,0 (2 comentarios)
3,8
3,8

Sobre este cliente

Bandera de UNITED STATES
Austin, United States
5,0
3
Forma de pago verificada
Miembro desde sept 17, 2018

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.