Зачем писать огромный код в JavaScript и Python чтобы вывело одну цифру? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Зачем писать огромный код в JavaScript и Python чтобы вывело одну цифру?

Зачем писать огромный код в JavaScript и Python чтобы вывело одну цифру если можно просто написать print ("5") или document.write(5);

17th Jun 2020, 5:09 PM
Андрей Гончаров
Андрей Гончаров - avatar
4 Answers
+ 3
The Python language is characterized by being a language that enables you to write a program to solve a problem with the lowest possible number of programming lines. As for the huge code you are talking about, it can be comments to clarify the purpose of the code. Or that the person who writes the code is a beginner and has no experience in reducing the number of lines of the code I hope I helped you
17th Jun 2020, 7:12 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 2
Gon Play пожалуйста
17th Jun 2020, 7:17 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
Спасибо
17th Jun 2020, 7:15 PM
Андрей Гончаров
Андрей Гончаров - avatar
0
Well anyway who writes huge code to print 5 and 5 , obviously everyone do it the way you said
17th Jun 2020, 5:15 PM
Abhay
Abhay - avatar