Question: Hello, I am still new to coding and looking for some assistance on solving this function without the use of conditionals or loops. Neither this
Hello, I am still new to coding and looking for some assistance on solving this function without the use of conditionals or loops. Neither this module nor any of these functions should import the introcs module.
In addition, you are not allowed to use loops or recursion in either function.
def isnetid(s):
"""
Returns True if s is a valid Syracuse netid.
Syracuse network ids consist of 2 or 3 lower-case initials followed by a
sequence of digits.
Examples:
isnetid('wmw2') returns True
isnetid('2wmw') returns False
isnetid('ww2345') returns True
isnetid('w2345') returns False
isnetid('WW345') returns False
Parameter s: the string to check
Precondition: s is a string
"""
Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
