Find Jobs
Hire Freelancers

Exception Handling

$10-30 USD

Dokončeno
Zveřejněno přibližně před 7 roky

$10-30 USD

Zaplaceno při doručení
Modify the following code to use exception handling, such that if the user enters in # a character string, such as "hello", the exception handling code will gracefully handle # the exception, tell the user what he/she did wrong, and continue to ask the user to # enter the correct number. # # Note: Do not use the isdigit() method with your answer. You should complete this # assignment using exception handling. USER_INPUT_MIN = 1 USER_INPUT_MAX = 20 def main() : answer = 0 while (answer < USER_INPUT_MIN or answer > USER_INPUT_MAX) : answer = int(input("Enter number: ")) if (answer < USER_INPUT_MIN or answer > USER_INPUT_MAX) : print("Please enter a number between %d and %d" % (USER_INPUT_MIN, USER_INPUT_MAX)) print("Got the user's answer: ", answer) main()
IČ projektu: 13379865

O projektu

7 nabídky
Vzdálený projekt
Aktivní před 7 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
Uděleno:
Avatar uživatele
Hello Sir, Raheel here. I've done too many projects in Python having great knowledge about it. I assure you that I'll deliver your project on time and you can also visit my profile for surety. I hope you will consider me to do your task Thanks
$25 USD v 1 dni
4,6 (1 recenze)
2,0
2,0
7 freelanceři nabízejí v průměru $45 USD za tuto práci
Avatar uživatele
Hi there, I'm professional Python developer, I can do this with exception handling. See some of my works in the portfolio. PIng me for discussion.
$25 USD v 1 dni
5,0 (29 recenze)
5,2
5,2
Avatar uživatele
Hey there, That's easy, I can help you right now:) Let me know if you'd like to collaborate. Regards, Alex
$30 USD v 1 dni
5,0 (2 recenze)
2,4
2,4

O klientovi

Pochází z UNITED STATES
Austin, United States
5,0
8
Ověřená platební metoda
Členem od led 22, 2017

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.