GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — PythonforHumanities/QuestionsBDT.py at master · FelipeAdeT/PythonforHumanities Expand file tree/ Copy pathQuestionsBDT.pyMore file actions 11 lines (6 loc) · 756 Bytes / Copy pathQuestionsBDT.pyFile metadata and controls11 lines (6 loc) · 756 Bytes 1 2 3 4 5 6 7 8 9 10 11 from Questions import * E1 = Solution("type(year_of_birth) outputs 'str' (a string). We enclosed the variable in quotes, so Python has interpreted them not as a number, but as text. This sometimes desirable, but will also prevent us from conducting mathematical operations on its numerical value.") Q1 = MultQuestion("How can you recognize that the string has been transformed into an integer?\n\na) The characters are digits \n\nb) The characters are not surrounded by quotes \n\nc) The characters are surrounded by quotes \n\nd) The characters are surrounded by digits\n\n","b") E2 = Solution("year_of_birth = int(year_of_birth)") E3 = Solution("x = 1\ny = 2\n(x - y)**2/2") E4 = Solution("lifespan = year_of_death - year_of_birth\nprint(lifespan)") |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |