Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to write this in pycharm?
How to write this in pycharm?
Python program is as follows (note the indentation of the source code in the figure)

( 1)

Week=[' Monday',' TUE',' Wednesday',' THU',' Friday',' Saturday',' Sunday']

Although correct:

N=int (input ("Please enter the number 1~7 (enter 0 to end):").

If n==0:

Print ("End of program!" )

break

elif 1 & lt; =n and n < = 7:

Print (week [n- 1])

Otherwise:

Print ("Please re-enter")

(2)

N=int(input ("Enter an integer:"))

a=b= 1

If n== 1:

print(a,end= ' ')

elif n==2:

print(a,end= ' ')

print(b,end= ' ')

Otherwise:

print(a,end= ' ')

print(b,end= ' ')

For I in the range (2, n):

Temperature =a

a=b

B+ = temperature

print(b,end= ' ')

(3)

N = input ("Enter an integer:")

Print (n [:-1])