1. Engineering
  2. Computer Science
  3. i need help with this python program ive supplied the...

Question: i need help with this python program ive supplied the...

Question details

I need help with this python program.

Ive supplied the starter code below.

import sys

def print_block(width, height, symbol):

# Remove the following line

print ('print_block is not implemented')

def print_args():

# Remove the following line, obviously

print ("print_args is not implemented")

def print_names():

print ("Flags:")

# Remove the following line

print ("print_flags is not implemented")

def parse_arguments():

# Remove the following line

print ("parse_arguments is not implemented")

return (2, 3, 'X')

def main():

print ('-----print_args----------------')

print_args()

print ('-----print_names--------')

print_names()

print ('-----parse_arguments-----------')

(width, height, symbol) = parse_arguments()

print_block(width, height, symbol)

if __name__ == '__main__':

main()

I need the output to look like this

Arguments: - width 10 -height Names width height eeee@e@@@@ eeee@e@@@@ eee@ee@e@e - height - width Arguments: 10 Names height width eeee@e@@@@ Arguments: - height Names height eee@a eee@a eee@a eee@a

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution