22 May Aurora Wednesday Saturday Python Homework 20.05.20.
Question: Draw the following picture in the pygame window: (could be different color) Hint: using pygame.draw.circle ...
Question: Draw the following picture in the pygame window: (could be different color) Hint: using pygame.draw.circle ...
Question: Write a program to ask the user for five names. The program should store the names in a list, and print them all out at the end. It should look something like this: Sample input: Enter 5 names: Tony Paul Nick Michel Kevin Sample output: The names are Tony, Paul, Nick, Michel, Kevin Hint: You can use...
Question: Create a Student class and make the following methods to : __init__() – Initialize it with name and roll number. __str__() – Display all information of the student. setAge() – It should assign age to student. setMarks() – It should assign marks to the student. ...
Problem DescriptionA palindrome is a word which is the same when read forwards as it is when read backwards. For example, mom and anna are two palindromes. A word which has just one letter, such as a, is also a palindrome. Given a word, what is the longest palindrome that is contained...
Question: You are given a string . Suppose a character 'a' occurs consecutively n times in the string. Replace these consecutive occurrences of the character 'a' with (n, 'a') in the string. Input Format: A single line of input consisting of the string .Output Format: A single line...
Question: The student council at Central Canada Collegiate is preparing signs with the message WELCOME TO CCC GOOD LUCK TODAY on various walls around the school. A sign is wide enough to hold w characters on each row, including spaces, as befits the wall to be...