1 def print_num_pattern(num1, num2): 2 3 4 if num1 <=0: print(num1, end="") return print(num1, end="") print_num_pattern (num1 - num2, num2) print(num1, end="") _name__ == "___main___": 5 6 7 8 9 10 11 if 12 num1 13 14 int(input()) num2 =int(input()) print_num_pattern(num1, num2) main.py Load default template...
1 def print_num_pattern(num1, num2): 2 3 4 if num1 <=0: print(num1, end="") return print(num1, end="") print_num_pattern (num1 - num2, num2) print(num1, end="") _name__ == "___main___": 5 6 7 8 9 10 11 if 12 num1 13 14 int(input()) num2 =int(input()) print_num_pattern(num1, num2) main.py Load default template...
Chapter2: Using Data
Section: Chapter Questions
Problem 12PE
Related questions
Question
My zyBooks lab is giving me a 7/10 is there any possible way that you could help me?

Transcribed Image Text:1 def print_num_pattern(num1, num2):
2
3
4
if num1 <=0:
print(num1, end="")
return
print(num1, end="")
print_num_pattern (num1 - num2, num2)
print(num1, end="")
_name__ == "___main___":
5
6
7
8
9
10
11 if
12
num1
13
14
int(input())
num2 =int(input())
print_num_pattern(num1, num2)
main.py
Load default template...
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning

Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,