xxxxxxxxxx
for i in range(0,len(y)):
count=1
flag=True
for j in range(i+1,len(y)):
if y[i] in x:
continue
else:
if y[i]==y[j]:
count+=1
flag=False
if flag==False:
print("frequency of {} is {}".format(y[i],count))
x.append(y[i])
xxxxxxxxxx
print('''
_ _ _ _ _ _ _
| | | | | | | | | | | |
| |__| | ___| | | ___ __ _____ _ __| | __| | |
| __ |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | |
| | | | __/ | | (_) | \ V V / (_) | | | | (_| |_|
|_| |_|\___|_|_|\___/ \_/\_/ \___/|_| |_|\__,_(_)
''')
xxxxxxxxxx
#You can use \n to create a carriage return.
print("first line\nSecond line")
#Or use the following syntax to replace the commas with \n
#to create carriage returns for each line.
print("first line", "second line", sep="\n")
#Or use triple quotation marks at the start and end of
#the text and format the text how you want it to appear.
print("""
Line1
Line2
""")
xxxxxxxxxx
print("first\nsecond")
#or
print("""
line1
line2
line3
""")
#or
print("line1","line2",sep = "\n")
xxxxxxxxxx
for i in range(0,len(y)):
count=1
flag=True
for j in range(i+1,len(y)):
if y[i] in x:
continue
else:
if y[i]==y[j]:
count+=1
flag=False
if flag==False:
print("frequency of {} is {}".format(y[i],count))
x.append(y[i])