Calc in Python in 1 row of code

preview_player
Показать описание
How to create calculator in Python in one row of code? See in this video the answer! )))

#shorts #youtubeshorts #viralshorts #short #youtubeshort #python
Рекомендации по теме
Комментарии
Автор

You could just open up a terminal, type "python" and it would be the same as this.

chiroyce
Автор

It is not really Calc it's just evaluate wich cause severe security issues

teamllr
Автор

Nie let me introduce you to 0 line calculator:
It’s called the python interpreter

feschber
Автор

Автор молодец, написал интерпретатор питона в 1 строку

kirich_yo
Автор

So this is just log4j python Edition with a calculator?

johannespensel
Автор

I'm most certain this video is just a silly joke. Of course, you can use the Python REPL instead. I sure hope nobody will use this as an example.

ArthurKhazbs
Автор

Nice, a calc with arbitrary code execution feature

akshayrajput
Автор

Можно было просто в командной строке писать сразу

ryancooper
Автор

Какое-то слишком продвинутый калькулятор что он выполняет функцию командной строки

hdtmqtm
Автор

First math problem: import os
Second math problem: os.system("del -y

HuntingKingYT
Автор

Nobody should do this, it's a quick way to show how cool python is, but don't ever do this in a production code.

chiamakacynthiaonyilimba
Автор

Eval() is the most DANGEROUS function of any programming language. If Hackers could use eval() function on the victim's thing then they could damage the victim.

sirikilohit
Автор

Eval() кране опасно использовать, уже куча статей на хабре разбирали эту тему
Функция будет исполнять любые данные, которые в неё передать, вплоть до того что вы сами себе ось с компа можете снести этой ф-ей

zaordu
Автор

It's not a calculator it's a python executer

hxadcimaldev
Автор

In Lhasa to make a while true loop we do: while true do. But it’s in roblox studio that uses lua

Majin
Автор

instead of >>> I would print:
"insert virus here"

JannisAdmek
Автор

Yeah this is perfect for code injection.

ranchu
Автор

Python programming typically takes very little effort because all the libraries people import for it to work properly do most of the work then the programmer does very little “which can still mean a couple 100 lines of code”

davidpolberaff
Автор

this is actually very dangerous as the user can execute arbitrary code which isn’t the best, also if they make any spelling mistake the whole program dies which also isn’t great

gacekkosmatek
Автор

Meanwhile i am creating four functions

thilageshganesh