CHALLENGE ACTIVITY 6.1.1: Basic function call   get_pattern() returns 5 characters. Call get_pattern() twice in a print() statement to return and print 10 characters. Example output:   ***** *****   I need help with this. Use Python for this, please

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter6: Looping
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
CHALLENGE ACTIVITY
6.1.1: Basic function call
 
get_pattern() returns 5 characters. Call get_pattern() twice in a print() statement to return and print 10 characters. Example output:
 
*****
*****
 
I need help with this. Use Python for this, please.
344614.2153518.qx3zqy7
1 def get_pattern():
return '******
2
1 test
passed
4 print('******)
5 print(
****)
All tests
passed
7
Run
Transcribed Image Text:344614.2153518.qx3zqy7 1 def get_pattern(): return '****** 2 1 test passed 4 print('******) 5 print( ****) All tests passed 7 Run
V Testing pattern returned was printed twice.
Your output
X Testing with different character.
Output differs. See highlights below.
Your output
Expected output
#####
View your last submission
Transcribed Image Text:V Testing pattern returned was printed twice. Your output X Testing with different character. Output differs. See highlights below. Your output Expected output ##### View your last submission
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Declaring and Defining the Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT