First digit after letter

Write a function @digit_after_let(s)@ that given a string s returns a
boolean and a character. The boolean is True when s has some digit after
some letter, otherwise is False. The character has to be the first digit
in s that comes out after some letter in the first case and the symbol
’$’ in the second one. You can use the string method @isalpha()@ to
check whether given a string it has at least one character and all its
characters are letters. For instance, @my_string.isalpha()@ is True when
@my_string@ is ’HeLLo’ or ’X’ and is False when @my_string@ is ’He7TO’
or ’?;x’ or ’123456’.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T16:32:52.651Z

© Jutge.org, 2006–2026.
https://jutge.org
