How to make Python print output non-newline

Source: Internet
Author: User

    • Print (with comma) separated by commas

This allows for continuous output

  • Print (J, "*", I, "=", j*i,end= "") ends with end to determine the format of the next output and the middle of the output
  •  forIinchRange1,Ten):     forJinchRange1, i+1): Print (J,"*"I"=", j*i,end="  ")        ifj = =I:print ("\ n")1*1=1  1*2=2  2*2=4  1*3=3  2*3=6  3*3=9  1*4=4  2*4=8  3*4= A  4*4= -  1*5=5  2*5=Ten  3*5= the  4*5= -  5*5= -  1*6=6  2*6= A  3*6= -  4*6= -  5*6= -  6*6= $  1*7=7  2*7= -  3*7= +  4*7= -  5*7= *  6*7= the  7*7= the  1*8=8  2*8= -  3*8= -  4*8= +  5*8= +  6*8= -  7*8= About  8*8= -  1*9=9  2*9= -  3*9= -  4*9= $  5*9= $  6*9= Wu  7*9= the  8*9= the  9*9=Bayi  

How to make Python print output non-newline

Related Article

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.