13 Jul PMCA Sunday 14:00 Python Homework 21.07.11.
Question: Continue with the code in the previous class and change the code such that the circle moves in both x direction and y direction. ...
Question: Continue with the code in the previous class and change the code such that the circle moves in both x direction and y direction. ...
Question: Input a string. Using a stack, reverse the string and print it. Sample Input 1: Enter String to reverse : Apple Sample Output 1 elppA Sample Input 2 Orange Sample Output 2 eganrO Hint: Below is the stack class, please use it to reverse the string class Stack: # we are using...
Question 1: Create a string variable with value “12.56”, convert the string variable into a float variable using the float() function Question 2: Create a string variable with value “78.92”, convert the string variable into an integer type variable Question 3: Create a string variable with value “56”, convert the...
Question: Given a list as below [10,2,8,6,5,7,7,7,7,2] Print the mean, median and mode of the above list of numbers. If you need to know what median, mean and mode is, please read the article https://www.purplemath.com/modules/meanmode.htm ...
Question: Spamway Inc. maintains a network of zombie computers to solicit and collect orders for its various fine products. Each zombie computer is responsible for zero or more subordinate zombies that it coordinates in these activities. Spamway uses a simple communication strategy among its zombies for transmitting...
Question 1 Make a variable and assign a number to it (any number you like). Then display your variable using print. Question 2 Modify your variable, either by replacing the old value with a new value, or by adding something to the old value. Display the new value using print. Question 3 Make another...
Question: Similar to the code we did in the last class, draw the below pattern using pygame In the above example, the radius of the circle is 40px. The height of the screen is 480px and the width of the screen is 640px. In your code, please...
Question 1: Write a Python program to get the Fibonacci series between 0 to 100. Note : The Fibonacci Sequence is the series of numbers, the first two numbers are 0 and 1 : 0, 1, 1, 2, 3, 5, 8, 13, 21, …. Every next number is found...
Question 1: Use float() to create a number from a string like '12.34'. Make sure the result is really a number! Question 2: Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up or down? Question 3: Try using int() to...
Question: Roll First Last 187 Evelyn Beach 129 Dalton Wilkinson 129 Dalton Pitts 170 Drake Watkins 165 Oliver Daniel 180 Igor Olson 137 April Graves 175 Dalton Jensen 163 Denton Oliver 152 Audrey Beck 189 Keelie Martinez 151 Phyllis Huffman 142 Lydia Hartman 175 Jared Tucker 140 Martin Simon 189 Malcolm Martinez 100 Naomi Alford 134 Cara Craft 103 Sara Wheeler 177 Driscoll Lester 180 ...