Question
Hi, I need to help with a problem that requires multiple parts 1. Assume that import math has been included at the top of your
Hi, I need to help with a problem that requires multiple parts
1. Assume that import math has been included at the top of your program: a. Write a Python statement to print the value of the mathematical constant e supplied by the math module. b. What will be the result of executing the following two Python statements? math.e = 10 print(math.e)
2. You want to write a Python program to compute the average of three integer quiz grades for a single student. Decide what variables your program needs, and create them with appropriate initial values.
3. Given the statement myList = [eeny, meeny, miny, moe] What Python statement would output miny?
4. Write a Python program that gets a single character from the user and writes out a congratulatory message if the character is a vowel (a, e, i, o, or u), but otherwise writes out a You lose, better luck next time message.
5. Insert the missing line of code so that the following adds the integers from 1 to 10, inclusive. value = 0 top = 10 score = 1 while score <= top: value = value + score #the missing line
6. What is the output after the following code is executed? low = 1 high = 20 while low < high: print(low, , high) low = low + 1 high = high 1 7. Create the following three labeled rectangular buttons: Have the space between the Start and Stop buttons be the same as the space between the Stop and Pause buttons.
8. Write a program that inputs the coordinates of three mouse clicks from the user and then draws a triangle in the graphics window using those three points.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started