Answer the question
In order to leave comments, you need to log in
Yandex. Practicum - lesson 9. Variables. Where is the mistake?
Good day, help me deal with the current situation:
Assignment:
Let's find out who is more - native speakers of Chinese or combined speakers of the three most popular languages ​​on the Internet.
Declare a top3_total variable and put in it the total number of English, Russian, and German speakers. Subtract the result from the number of Chinese speakers and print the result to the screen. Use variables from the previous task.
Data:
English speakers -
378.2 Russian speakers -
153.9 German
speakers - 76.0 Chinese speakers - 908.7
My code:
english = 378.2
russian = 153.9
german = 76.0
chinese = 908.7
top3_total = russian + german + english
print(top3_total)
Result in python:
608.1 Code
continuation:
chinese - top3_total
print(chinese - top3_total)
Result
:
300.6
answer: check the correctness of the calculations"
Answer the question
In order to leave comments, you need to log in
Good afternoon, I deleted the same thing, but still the error is:
english = 378.2
russian = 153.9
german = 76.0
chinese = 908.7
print(english)
print(russian)
print(german)
print(chinese)
top3_total = english + russian + german
print( chinese - top3_total)
Make it so that only one number is displayed without prints english, chinese. After the robot has accepted the first part of the task, it immediately checks only the second one. Freelancers from Yandex did not finish the logic
I typed like this: 1. english = 378.2
2. russian =153.9
3. german = 76.0
4. chinese = 908.7
5. top3_total = 378.2 + 153.9 + 76
6. print(908.7 - ( 378.2 + 153.9 + 76))
Everything turned out, try)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question