Python For nested loop graphics print X-type nested loop, pythonnested

Source: Internet
Author: User

Python For nested loop graphics print X-type nested loop, pythonnested

Many For nested loop graph printing jobs are made in C ++. I think Python can also be done. Just give it a try.

 

Original Web Site C ++ exercise: http://www.imooc.com/qadetail/216848? T = 338800

 

 

Output result:

O ..... o. o... o... o. O ..... O ..... o. o... o... o. O ..... O

 

 

I split it into seven parts and try to write them. Finally, the three code blocks are merged, for example:

O ..... o. o... o... o. O ..... O ..... o. o... o... o. O ..... O

 

 

I hope all new users can write it ~~

 

 

As a newbie, I don't know if there are any simpler methods and different ways of thinking.

 

My answer is written in the next article. Thank you ~~

 

Next article: print the X-type nested loop with Python For nested loop graphics-exercise answer

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.