INTERACTIVE ONLINE COURSE

Python 3

FOR BEGINNERS


"The first Python course that simply amazed me. Very well explained and easy to understand." (Alexandru Cosmin)

"The best Python course in Romania." (Iulian Geană)


ALL REVIEWS
COMUNITY
EXERCISES
Computer Science - Problem Collection in Python


Lists [Back to Index]

Page:
/ 1     
1. Create and display a list containing the names of five favorite car brands. Then display the list in the console.

[solve in editor]

Author: admin | Code: #10 | Easy
2. The Formula 1 World Championship decided to penalize certain drivers for breaking the rules. Thus, penalty positions are awarded on the starting grid based on the severity of the infraction. The task is to reorder the standings after all penalties have been applied.

Input data: each driver has a unique code consisting of several parts as follows:
  • The first digit represents the team number the driver belongs to
  • The second and third digits form the driver's race number
  • The fourth and fifth digits represent the driver's starting grid position
  • The last two digits represent the number of positions the driver is penalized
10 such codes, one for each driver, will be read.

Output data: the standings after all penalties will be displayed in order, separated by a space, with the team number and driver number. Move to a new line after each result.

[solve in editor]

Author: Achim Vlad | Code: #63 | Hard
3. Find how many odd numbers are between 24 and 800.

[solve in editor]

Author: Anonymous | Code: #124 | Medium
4. Sum of Elements in a List
Write a program that receives a list of integers from the user and calculates the sum of all elements in the list. Display the result at the end. Example: Input: [3, 7, 1, 5, 9] Output: The sum is 25

[solve in editor]

Author: admin | Code: #134 | Easy
5. Finding Words with Maximum Length
Write a program that receives a list of words from the user and finds all the words with the greatest length in the list. Display these words at the end.
Example: Input: ['apple', 'pear', 'pineapple', 'banana', 'kiwi'] Output: The words with the maximum length are: ['pineapple', 'banana']

[solve in editor]

Author: admin | Code: #135 | Easy
Page:
/ 1     
Choose one of the proposed problems ...
 arrow_back   home   perm_identity   list   arrow_upward