DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to take first digit of number python
>>> number = 1520 >>> int(str(number)[:2]) 15
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#digit
#number
#python
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit