S
S
samurai2020-05-04 08:20:05
Python
samurai, 2020-05-04 08:20:05

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.
5eafa5be5210d347996638.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanya Hihi Haha, 2020-05-04
@ValarMayar

russian_native_millions = 153.9
russian_native = int(russian_native_millions * 1000000)
russian_native = int(russian_native)
print(russian_native)
print(type(russian_native))

D
Dimonchik, 2020-05-04
@dimonchik2013

throw out
russian_native = int(russian_native)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question