Posted at 18:58h
in
Uncategorized
by admin
Question 1:Numerous local and international recreational runners were eager to take part in this year's Zagreb Marathon! It is an already traditional race 42125 meters long. A curious statistical info is that this year every single contestant managed to complete the race, except one.
Since marathons...
Posted at 03:19h
in
Uncategorized
by admin
Question:
Use input() to take 10 input from user, each item is separated by space. Then try to complete the following task:
Create a list from the input
Delete all repeated elements of the list.
Sample Input 1:
1 2 3 2 1 3 98 98 67
Sample...
Posted at 03:17h
in
Uncategorized
by admin
Question:Base on the explanation about the deque data structure, please finish the following code:
class Deque: def __init__(self): pass def isEmpty(self): pass def...
Question:
The Body Mass Index (BMI) is one of the calculations used by doctors to assess an adult’s health. The doctor measures the patient’s height (in meters) and weight (in kilograms), then calculates the BMI using the formula:
BMI = weight / (height * height)
Write a program...
Posted at 03:08h
in
Uncategorized
by admin
Question 1:
Use recursion to write a function has_digit that consumes a string and produces True if the string contains a digit (0 through 9) and False otherwise.
Hints:
Make sure that you have a base case.
Make sure to use the function on a shorter string.
Before calling the function,...
Posted at 03:04h
in
archives
by admin
Microsoft Teams meeting
Join on your computer or mobile app
Click here to join the meeting
Learn More
Question 1.
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
Sample Input:
Which multiplication...