1#You can use \n to create a carriage return.
2print("first line\nSecond line")
3
4#Or use the following syntax to replace the commas with \n
5#to create carriage returns for each line.
6
7print("first line", "second line", sep="\n")
8
9#Or use triple quotation marks at the start and end of
10#the text and format the text how you want it to appear.
11
12print("""
13Line1
14Line2
15""")
1for i in range(0,len(y)):
2 count=1
3 flag=True
4 for j in range(i+1,len(y)):
5 if y[i] in x:
6 continue
7 else:
8 if y[i]==y[j]:
9 count+=1
10 flag=False
11
12
13 if flag==False:
14 print("frequency of {} is {}".format(y[i],count))
15 x.append(y[i])
1for i in range(0,len(y)):
2 count=1
3 flag=True
4 for j in range(i+1,len(y)):
5 if y[i] in x:
6 continue
7 else:
8 if y[i]==y[j]:
9 count+=1
10 flag=False
11
12
13 if flag==False:
14 print("frequency of {} is {}".format(y[i],count))
15 x.append(y[i])