Question: Complete the solutions for the following problems using the Python programming language. All solutions are to be coded as FUNCTIONS! Q1: Write a function named

 Complete the solutions for the following problems using the Python programminglanguage. All solutions are to be coded as FUNCTIONS! Q1: Write a

Complete the solutions for the following problems using the Python programming language. All solutions are to be coded as FUNCTIONS! Q1: Write a function named 'checkRegex' that returns a true or flase value. The function determines if the supplied string meets the following criteria: a) Must begin with an alphabetic letter only. b) Must be at least 8 characters long. c) Must contain at least 1 capital letter. d) Must contain at least 1 lowercase letter. e) Must contain at least one of the following special characters: @ # $ .|/\! import math import random import string import collections import datetime import re import time import copy # YOUR CODE BELOW... def checkRegex(str2) : your code here... # end def def fancyList(table, cityFrom, cityto) : your code here... # end def def natureSequence (fn, sn, n) : your code here... # end def def printEvens(a, b) : your code here... # end def def generatePokerHand (deck, coords) : your code here... # end def def main() : rv = checkRegex("abcdefghijklmnopqrstuvwxyz") print (rv) rv = checkRegex("Mariner!") print(rv) rv = checkRegex("acdefghij*012345") print(rv) fancylist) rv = natureSequence(0, 1, 10) rv = natureSequence(1, 3, 15) printEvens (433, 452) printEvens (2048, 2188) deck = [["20", "30", "40", "50", "60", "70", "80", "90", "XC", "IC", "QC", "KC", "AC"], ["20", "3D", "40", "50", "60", "70", "80", "90", "XD", "JD", "QD", "KD", "AD"], ["2H", "3H", "4H", "5H", "6H", "7H", "SH", "9H", "XH", "JH", "OH", "KH", "AH"], ["25", "35", "45", "55", "65", "75", "85", "95", "XS", "JS", "OS", "KS", "AS"] ] coords=["22", "A", "38", "18", "25"] rv = generatePokerHand(deck, coords) coords=["23", "24", "25", "26", "27"] rv = generatePokerHand (deck, coords) # end main() if name == _main__" : main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!