Is parsing covered in the python course? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is parsing covered in the python course?

I am having trouble understanding what parsing represents in this function or argument. def pars_int(str): def parse_int(str): """Parses user-entered string for an integer value between 0 including and 100 including. Args: str (string): User input gathered from command line. Returns: int: The parsed integer if the input was valid; None otherwise. """ Am I just creating a string for a user to read and prompt to input with an integer?

7th Jun 2020, 5:33 PM
John Perez
John Perez - avatar
3 Answers
+ 1
Not explicitly, but the course provides all relevant basic topics required for this job. You need to parse a string input from user to it's integer value representation if available and print it.
7th Jun 2020, 5:37 PM
Sandra Meyer
Sandra Meyer - avatar
+ 1
MODS this man Ranjana Maidawat is advertising course. He has written same comments in many threads.HonFu Kuba Siekierzyński Burey
7th Jun 2020, 6:29 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
0
I understand parsing breaks an argument into a branching tree or something along the lines of that. From what I've looked online and stuff. Hmm I think I know what to do now thanks for replying.
7th Jun 2020, 5:42 PM
John Perez
John Perez - avatar