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


Operators & Data Types [Back to Index]

Page:
/ 2     
1. Display the result of the expression in the console: 9 * (12-5) - 2**3

[solve in editor]

Author: admin | Code: #5 | Easy
2. Create a new program that calculates and displays seven to the power of three.

[solve in editor]

Author: admin | Code: #6 | Easy
3. It is known that Andrei has 7 apples. Ana has 3 times more apples than Andrei, and Stefan has 49 times more apples than Andrei. Find out how many apples the three children have in total using an expression that includes addition, multiplication, and exponentiation (+,*,**).

[solve in editor]

Author: Fabian Dragusanu | Code: #19 | Medium
4. A car uses a quantity of x liters to travel the distance between Barcelona and Madrid. Another car uses y liters for the same distance, knowing that y=2*x. Write a program that reads the variable x and determines the total fuel required.

Note: Pay attention to data types...

[solve in editor]

Author: Fabian Dragusanu | Code: #20 | Medium
5. Create a time converter that converts hours and minutes entered from the keyboard into seconds.

Example: For hours=5, minutes=54, print 21240 seconds.

[solve in editor]

Author: Iacob Valentin | Code: #21 | Medium
6. Write a program that converts the string "110" into an integer and displays the resulting data type.

[solve in editor]

Author: Macovei Andrei | Code: #23 | Easy
7. In a hive, there are 5 bees and twice as many bumblebees. Each bee produces 200ml of honey daily. How many bumblebees are in the hive? And how much honey is produced daily by the 5 bees?

[solve in editor]

Author: Elena Topala | Code: #37 | Easy
8. At the zoo, there are 5 pandas, 2 hippos, 4 rabbits, and 6 foxes. How many legs do the animals at the zoo have in total?

[solve in editor]

Author: Elena Topala | Code: #38 | Easy
9. Two numbers a and b are given. What value should be added to a to obtain double of b?

[solve in editor]

Author: Elena Topala | Code: #48 | Easy
10. In a group, there are N friends. When they meet, they greet each other by shaking hands with everyone else. How many handshakes occur? Example: For 3, display 3.

[solve in editor]

Author: Ionescu Maria Magdalena | Code: #54 | Medium
Page:
/ 2     
Choose one of the proposed problems ...
 arrow_back   home   perm_identity   list   arrow_upward