Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP ME THIS QUESTION (PYTHON !!!! ) 2. Write a function called triangle that takes an integer size as a parameter and prints a

image text in transcribed

PLEASE HELP ME THIS QUESTION (PYTHON !!!! )

2. Write a function called triangle that takes an integer size as a parameter and prints a size * 2 1 wide by size tall triangle of numbers. See example calls below triangle(1) Call Example Output triangle(0) triangle(3) 12345 234 3 triangle(5) 123456789 2345678 34567 triangle(6) 12345678901 234567890 3456789 45678 567 456 6 The start number increases by one on each line. The first line contains no leading spaces and one additional leading space is added per line. Notice that after 9, the numbers wrap around back to 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

Why wasnt it the cause of the strike?

Answered: 1 week ago

Question

2. How should this be dealt with by the organisation?

Answered: 1 week ago

Question

explain what is meant by the term fair dismissal

Answered: 1 week ago