FREE 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]

Requirement. 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...

Autor: admin | Cod: #20 | Medium
Editor - problem_#20.py
       
Console done
Graphical mode (turtle window) done
 arrow_back   home   perm_identity   list   arrow_upward