+{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"name":"python","version":"3.10.10","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"print (\"Welcome to the game. 😃💁\")","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-05-19T08:05:01.426732Z","iopub.execute_input":"2023-05-19T08:05:01.427235Z","iopub.status.idle":"2023-05-19T08:05:01.433340Z","shell.execute_reply.started":"2023-05-19T08:05:01.427163Z","shell.execute_reply":"2023-05-19T08:05:01.432115Z"},"trusted":true},"execution_count":16,"outputs":[{"name":"stdout","text":"Welcome to the game. 😃💁\n","output_type":"stream"}]},{"cell_type":"code","source":"playing = input('Do you want to play? ')","metadata":{"execution":{"iopub.status.busy":"2023-05-19T08:05:01.435961Z","iopub.execute_input":"2023-05-19T08:05:01.436481Z","iopub.status.idle":"2023-05-19T08:05:05.381134Z","shell.execute_reply.started":"2023-05-19T08:05:01.436438Z","shell.execute_reply":"2023-05-19T08:05:05.380282Z"},"trusted":true},"execution_count":17,"outputs":[{"output_type":"stream","name":"stdin","text":"Do you want to play? yes\n"}]},{"cell_type":"code","source":"if playing.lower() != 'yes':\n quit()\nprint('Okay lets play!')\n\nans = input ('True or False: All birds can fly. \\n')\nif ans.lower() == 'false':\n print('Correctomundo!')\n pt=pt+1\nelse:\n print('Incorrect.')\n \nans = input ('True or False: All mammals lay eggs. \\n')\nif ans.lower() == 'false':\n print('Correctomundo!')\n pt=pt+1\nelse:\n print('Incorrect.')\n\nans = input ('True or False: Water boils at 100 degrees Fahrenheit. \\n')\nif ans.lower() == 'false':\n print('Correctomundo!')\n pt=pt+1\nelse:\n print('Incorrect.')\n\nans = input ('How many sides does a hexagon have? (4/5/7/8/6) \\n')\nif ans == '6':\n print('Correctomundo!')\n pt=pt+1\nelse:\n print('Incorrect.')\n\nans = input ('True or False: All prime numbers are odd. \\n')\nif ans.lower() == 'false':\n print('Correctomundo!')\n pt=pt+1\nelse:\n print('Incorrect.')\n\nans = input ('True or False: The Earth is the largest planet in our solar system. \\n')\nif ans.lower() == 'false':\n print('Correctomundo!')\n pt=pt+1\nelse:\n print('Incorrect.')\n\n\n \nprint('\\n Congratulations! You have scored', pt ,'points!')\n ","metadata":{"execution":{"iopub.status.busy":"2023-05-19T08:18:46.911026Z","iopub.execute_input":"2023-05-19T08:18:46.911460Z","iopub.status.idle":"2023-05-19T08:19:29.523824Z","shell.execute_reply.started":"2023-05-19T08:18:46.911421Z","shell.execute_reply":"2023-05-19T08:19:29.522704Z"},"trusted":true},"execution_count":22,"outputs":[{"name":"stdout","text":"Okay lets play!\n","output_type":"stream"},{"output_type":"stream","name":"stdin","text":"True or False: All birds can fly. \n faLSE\n"},{"name":"stdout","text":"Correctomundo!\n","output_type":"stream"},{"output_type":"stream","name":"stdin","text":"True or False: All mammals lay eggs. \n FASLE\n"},{"name":"stdout","text":"Incorrect.\n","output_type":"stream"},{"output_type":"stream","name":"stdin","text":"True or False: Water boils at 100 degrees Fahrenheit. \n flase\n"},{"name":"stdout","text":"Incorrect.\n","output_type":"stream"},{"output_type":"stream","name":"stdin","text":"How many sides does a hexagon have? (4/5/7/8/6) \n false\n"},{"name":"stdout","text":"Incorrect.\n","output_type":"stream"},{"output_type":"stream","name":"stdin","text":"True or False: All prime numbers are odd. \n false\n"},{"name":"stdout","text":"Correctomundo!\n","output_type":"stream"},{"output_type":"stream","name":"stdin","text":"True or False: The Earth is the largest planet in our solar system. \n false\n"},{"name":"stdout","text":"Correctomundo!\nCongratulations! You have scored 7 points!\n","output_type":"stream"}]}]}
0 commit comments