Find Jobs
Hire Freelancers

Small Python Project (3)

$10-30 USD

Selesai
Dibuat lebih dari 5 tahun yang lalu

$10-30 USD

Dibayar ketika dikirim
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 Proyek: 17825450

Tentang proyek

2 proposal
Proyek remot
Aktif 5 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
Hello, I am experienced excel expert. I can help with this task with quick turnaorund. Looking to hearing from you. Kind regards
$30 USD dalam 1 hari
4,9 (68 ulasan)
6,0
6,0
2 freelancers are bidding on average $28 USD for this job
Avatar Pengguna
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 dalam 1 hari
5,0 (2 ulasan)
3,8
3,8

Tentang klien

Bendera UNITED STATES
Austin, United States
5,0
3
Memverifikasi Metode pembayaran
Anggota sejak Sep 17, 2018

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.