Computer Science, asked by stajbanu2135, 1 year ago

Which command is used to convert text into integer value in python?

Answers

Answered by Anonymous
1

Just add 'int' before the variable in which the value is to be stored.

If its an alphabet, its ASC|| value will be saved in the variable

Hope it helps :)


LuckyYadav2578: dear you can not put int before any text value
LuckyYadav2578: i mean you can not add int before variable. .. it is a syntax error
Answered by LuckyYadav2578
3
dear there is a mistake in a question
you can not convert text in integer value

you can convert string value in integer value

programme like :-

a=" 25"
print (a+5)

output will be 30

i hope it's help ☆☆:)
Similar questions