Find Jobs
Hire Freelancers

Exception Handling

$10-30 USD

Ukończony
Opublikowano około 7 lat temu

$10-30 USD

Płatne przy odbiorze
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()
Identyfikator projektu: 13379865

Informację o projekcie

7 ofert
Zdalny projekt
Aktywny 7 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
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 w 1 dzień
4,6 (1 opinia)
2,0
2,0
7 freelancerzy składają oferty o średniej wysokości $45 USD dla tej pracy
Awatar Użytkownika
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 w 1 dzień
5,0 (29 opinii)
5,2
5,2
Awatar Użytkownika
Hey there, That's easy, I can help you right now:) Let me know if you'd like to collaborate. Regards, Alex
$30 USD w 1 dzień
5,0 (2 opinii)
2,4
2,4

O kliencie

Flaga UNITED STATES
Austin, United States
5,0
8
Zweryfikowana metoda płatności
Członek od sty 22, 2017

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.