With the help of isdigit() function we can check if a string start with number or not.
Lets check with following examples:
>>> input = '1viewsby' >>> input.isdigit() True
Above example is returned true since input string is started with with number.
>>> input = 'viewsby' >>> input.isdigit() False
Since input is is not started with number above example returned false.