Extra Credit: Only attempt when you are done with the regula…

Written by Anonymous on June 17, 2026 in Uncategorized with no comments.

Questions

Extrа Credit: Only аttempt when yоu аre dоne with the regular part оf the quiz.   Max: 5 points *** DO ONLY ONE! *** 1) Write a Python function named extract_numbers(text) that uses regular expressions to return a list of all whole numbers found in the string. For example, extract_numbers('Room 12 has 3 chairs') should return ['12', '3']. Include the import statement needed for regular expressions.   or 2) Write a Python function named count_links(url) that takes a URL as a parameter. Do not ask for the URL inside the function.  Do not print results in the function. The function should: Open the URL. Read the contents of the web page. Count how many times the string "

Comments are closed.