Output: +++++++++++
+ +
+++++++++++
1 Print("+++++++++++")2 Print("+ +")3 Print("+++++++++++")4 5 6 Print("+"*11)7 Print("+"+" "*9+"+")#Plus a plus space multiplied by nine plus a plus sign8 Print("+"*11)
Small essay:
# notation 1: direct with \ n line, output three times
# string \ n is line break
The # string \ t is an indent symbol, each indent symbol is a eight-space position
1 #have () line break, can be directly wrapped2 Print("Think you want you think you think you want you think you miss you"3 "Think you want you think you want you think you want you think you want you think you miss you")4 5 #There is no () newline, there will be a line after6msg =" Think you think you think you think you want to" 7 " You think you want you think you want you think you miss you"
Enter the length of the right triangle two right triangle, B, to find the length of the hypotenuse c.
1 a = float (input (" Please enter right angle a:"))2 b = float (input (" Please input right angle B:"))34 c = (a**2 + b**2) * * 0.55print(" hypotenuse C:"+str (c))
Python Practice 3-7