Question

Hi Abdallah Abdulfatah Mohamad, when you submit this form, the owner will be able to see your name and email address * Requir
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)

for i in range(1,6):
    for dot in range(6-i,1,-1):
        print(".",end='')
    for j in range(i):
        print(i,end='')
    print()

2)

output of given code:

for i in range(1,7): for j in range (1,i+1): print(i,end=) print 22 333 4444 55555 666666

To print till 10 you need to only change first line of given code to

for i in range(1, 11)

Add a comment
Know the answer?
Add Answer to:
Hi Abdallah Abdulfatah Mohamad, when you submit this form, the owner will be able to see...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Overview These exercises will allow you to have some practice with basic Java file Input/Output. In...

    Overview These exercises will allow you to have some practice with basic Java file Input/Output. In addition, you will also have an opportunity to have more practice with methods and arrays.   Objectives Practice with programming fundamentals Variables - Declaration and Assignment Primitive types Arithmetic Expressions Simple keyboard input and text display output Branching - if-elseif-else syntax Loops - simple while loops, nested while loops Methods - functions and procedures ArrayLists - collections of variables File I/O Works towards the following...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT