eval method in Python | Use of eval() Function in Hindi | How to Read Expression in Python

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор


Apart from structured learning, you will get:
- Study Material
- Notes
- Practical Codes
- Quizzes & Tests
- Interview Questions
- Real-time Projects
- Videos in Sequential Order
- Video Playlist
- Roadmap to get job
- Job updates
- Industry-recognized Certificate


DataFlairHindi
Автор

a = input("enter an expression: ")
Print(eval(a))

ST-YLE-n
Автор

3:04 there is a small mistake. eval() takes strings as inputs so an int() on the input will make eval give an error. No need of int().

SrinjanSanyal-dc
Автор

sir collection in python ke complite class digia

subhashjha
Автор

sir eval() method main error hai
type error: eval() arg 1 must be a string, bytes or code object

softwareengineer
Автор

Isn’t eval() unsafe to use for input? I mean you can put malware script and it will evaluate it.

VAIBHAVMALHOTRA
Автор

it take string intput and you write interger input

BADDEEP
Автор

eval method ka use only integers k liye hi kia ja skta h kya sir??

JayTheCoder
join shbcf.ru