Answer the question
In order to leave comments, you need to log in
How to close a question?
I don't know much about what I'm doing, I just started. If you can, explain in "Russian language"). (If it's not difficult to rewrite the code.)
OBJECTIVE:
We have written a code that converts the number of Russian native speakers in millions (variable russian_native_millions) into the number of Russian native speakers in people. (variable russian_native). Now the russian_native variable is of the float type, but it is better to convert it to the int data type, because it stores the number of people. Add this transformation to your code.
CODE:
russian_native_millions = 153.9
russian_native = int(russian_native_millions * 1000000)
russian_native = int(russian_native)
print(type(russian_native))
RESULT:
Your code works, but does not complete the task, or does something beyond the task. Try to decide differently.
Answer the question
In order to leave comments, you need to log in
russian_native_millions = 153.9
russian_native = int(russian_native_millions * 1000000)
russian_native = int(russian_native)
print(russian_native)
print(type(russian_native))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question