Instructions Why all the paintings in museums are always in frames? I do not know why, but some of your questions and comments touch Mentors' hearts so much, so we want to print them in frames! Can...


Python


learning object :



  1. Function creation

  2. Character multiplication (a * 5 == aaaaa)

  3. Using len function


In the code I should also define __name__ == '__main__'


Instructions<br>Why all the paintings in museums are always in frames? I do not know why, but some of your questions and comments touch Mentors'<br>hearts so much, so we want to print them in frames! Can you help us?<br>1. Create a function frame_print (line, frame_char) that will take a line (basically string with a good comment to print) and a<br>character (from which we want to create a frame, e.g. #)<br>o Print the line in a frame formed by character as given in the example output.<br>2. Input a line with a nice comment)<br>3. Input a character for the frame.<br>4. Use your function to print this nice comment :)<br>Example input<br>We believe in you!<br>Example output<br># #:<br>##<br># We believe in you! #<br>## #####<br>#2#<br>

Extracted text: Instructions Why all the paintings in museums are always in frames? I do not know why, but some of your questions and comments touch Mentors' hearts so much, so we want to print them in frames! Can you help us? 1. Create a function frame_print (line, frame_char) that will take a line (basically string with a good comment to print) and a character (from which we want to create a frame, e.g. #) o Print the line in a frame formed by character as given in the example output. 2. Input a line with a nice comment) 3. Input a character for the frame. 4. Use your function to print this nice comment :) Example input We believe in you! Example output # #: ## # We believe in you! # ## ##### #2#

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here