Which command is used to convert text into integer value in python?
Answers
Answered by
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
Answered by
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 ☆☆:)
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
Math,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago
Math,
1 year ago