|
| 1 | +Description |
| 2 | +Now it's time to make our project user-friendly. In this final stage, you'll make your software ready for the zoo staff to use. Your program should understand the habitat numbers, show the animals, and be able to work continuously without having to be restarted. |
| 3 | + |
| 4 | +Objectives |
| 5 | +Your tasks at this point: |
| 6 | + |
| 7 | +1. Your program should repeat the behavior from the previous stage, but now in a loop. |
| 8 | + |
| 9 | +2. Do not forget to include an exit opportunity: inputting exit should end the program. |
| 10 | + |
| 11 | +3. When the program is done running, it should print: See you later! |
| 12 | + |
| 13 | +CODE:- |
| 14 | + |
| 15 | +camel = r""" |
| 16 | +Switching on the camera in the camel habitat... |
| 17 | + ___.-''''-. |
| 18 | +/___ @ | |
| 19 | +',,,,. | _.'''''''._ |
| 20 | + ' | / \ |
| 21 | + | \ _.-' \ |
| 22 | + | '.-' '-. |
| 23 | + | ', |
| 24 | + | '', |
| 25 | + ',,-, ':; |
| 26 | + ',,| ;,, ,' ;; |
| 27 | + ! ; !'',,,',',,,,'! ; ;: |
| 28 | + : ; ! ! ! ! ; ; :; |
| 29 | + ; ; ! ! ! ! ; ; ;, |
| 30 | + ; ; ! ! ! ! ; ; |
| 31 | + ; ; ! ! ! ! ; ; |
| 32 | + ;,, !,! !,! ;,; |
| 33 | + /_I L_I L_I /_I |
| 34 | +Look at that! Our little camel is sunbathing!""" |
| 35 | + |
| 36 | +lion = r""" |
| 37 | +Switching on the camera in the lion habitat... |
| 38 | + ,w. |
| 39 | + ,YWMMw ,M , |
| 40 | + _.---.._ __..---._.'MMMMMw,wMWmW, |
| 41 | + _.-"" ''' YP"WMMMMMMMMMb, |
| 42 | + .-' __.' .' MMMMW^WMMMM; |
| 43 | + _, .'.-'"; `, /` .--"" :MMM[==MWMW^; |
| 44 | + ,mM^" ,-'.' / ; ; / , MMMMb_wMW" @\ |
| 45 | +,MM:. .'.-' .' ; `\ ; `, MMMMMMMW `"=./`-, |
| 46 | +WMMm__,-'.' / _.\ F'''-+,, ;_,_.dMMMMMMMM[,_ / `=_} |
| 47 | +"^MP__.-' ,-' _.--"" `-, ; \ ; ;MMMMMMMMMMW^``; __| |
| 48 | + / .' ; ; ) )`{ \ `"^W^`, \ : |
| 49 | + / .' / ( .' / Ww._ `. `" |
| 50 | + / Y, `, `-,=,_{ ; MMMP`""-, `-._.-, |
| 51 | + (--, ) `,_ / `) \/"") ^" `-, -;"\: |
| 52 | +The lion is roaring!""" |
| 53 | + |
| 54 | +deer = r""" |
| 55 | +Switching on the camera in the deer habitat... |
| 56 | + /| |\ |
| 57 | +`__\\ //__' |
| 58 | + || || |
| 59 | + \__`\ |'__/ |
| 60 | + `_\\ //_' |
| 61 | + _.,:---;,._ |
| 62 | + \_: :_/ |
| 63 | + |@. .@| |
| 64 | + | | |
| 65 | + ,\.-./ \ |
| 66 | + ;;`-' `---__________-----.-. |
| 67 | + ;;; \_\ |
| 68 | + ';;; | |
| 69 | + ; | ; |
| 70 | + \ \ \ | / |
| 71 | + \_, \ / \ |\ |
| 72 | + |';| |,,,,,,,,/ \ \ \_ |
| 73 | + | | | \ / | |
| 74 | + \ \ | | / \ | |
| 75 | + | || | | | | | |
| 76 | + | || | | | | | |
| 77 | + | || | | | | | |
| 78 | + |_||_| |_| |_| |
| 79 | + /_//_/ /_/ /_/ |
| 80 | +Our 'Bambi' looks hungry. Let's go to feed it!""" |
| 81 | + |
| 82 | +goose = r""" |
| 83 | +Switching on the camera in the goose habitat... |
| 84 | + |
| 85 | + _ |
| 86 | + ,-"" "". |
| 87 | + ,' ____ `. |
| 88 | + ,' ,' `. `._ |
| 89 | + (`. _..--.._ ,' ,' \ \ |
| 90 | + (`-.\ .-"" ""' / ( d _b |
| 91 | + (`._ `-"" ,._ ( `-( \ |
| 92 | + <_ ` ( <`< \ `-._\ |
| 93 | + <`- (__< < : |
| 94 | + (__ (_<_< ; |
| 95 | + `------------------------------------------ |
| 96 | +The goose is staring intently at you... Maybe it's time to change the channel?""" |
| 97 | + |
| 98 | +bat = r""" |
| 99 | +Switching on the camera in the bat habitat... |
| 100 | +_________________ _________________ |
| 101 | + ~-. \ |\___/| / .-~ |
| 102 | + ~-. \ / o o \ / .-~ |
| 103 | + > \\ W // < |
| 104 | + / /~---~\ \ |
| 105 | + /_ | | _\ |
| 106 | + ~-. | | .-~ |
| 107 | + ; \ / i |
| 108 | + /___ /\ /\ ___\ |
| 109 | + ~-. / \_/ \ .-~ |
| 110 | + V V |
| 111 | +This bat looks like it's doing fine.""" |
| 112 | + |
| 113 | +rabbit = r""" |
| 114 | +Switching on the camera in the rabbit habitat... |
| 115 | + , |
| 116 | + /| __ |
| 117 | + / | ,-~ / |
| 118 | + Y :| // / |
| 119 | + | jj /( .^ |
| 120 | + >-"~"-v" |
| 121 | + / Y |
| 122 | + jo o | |
| 123 | + ( ~T~ j |
| 124 | + >._-' _./ |
| 125 | + / "~" | |
| 126 | + Y _, | |
| 127 | + /| ;-"~ _ l |
| 128 | +/ l/ ,-"~ \ |
| 129 | +\//\/ .- \ |
| 130 | + Y / Y |
| 131 | + l I ! |
| 132 | + ]\ _\ /"\ |
| 133 | +(" ~----( ~ Y. ) |
| 134 | +It looks like we will soon have more rabbits!""" |
| 135 | + |
| 136 | + |
| 137 | +animals = [camel, lion, deer, goose, bat, rabbit] |
0 commit comments