Question: Write a Python function Match_num which takes a number and a string as arguments and finds out if the string starts with the specific number.
Write a Python function Match_num which takes a number and a string as arguments and finds out if the string starts with the specific number. The function should return True if there is a match else returns False.
Write a Python function which takes an IP address as an input argument, removes all leading zeros and returns the IP address
Write a Python function which takes a pattern and a text as input arguments and returns a tuple with the matches
Write a Python function to find the occurrence and prints the position of substrings within a string.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
