Commit b4f2de75 by BellCodeEditor

auto save

parent dcabb649
Showing with 44 additions and 13 deletions
c=1
a=""
b=""
for i in range(2,1000):
buttun = 0
for j in range(2,i):
if i%j == 0:
buttun = 1
if i %10 == 3:
if buttun == 1:
a=""
else:
a="*"
if i %100//10 == 3 and i > 10 :
b="&"
else:
b=""
print(b,i,a)
\ No newline at end of file
alist=input("")
list=alist.split(",")
blist=alist.split(",")
print(len(list))
b=""
c=0
e=0
d="[bad]"
g=""
l=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
for i in range(0,len(list)-1):
for j in range(0,len(list)-1):
if int(list[j]) < int(list[j+1]):
list[j+1],list[j]=list[j],list[j+1]
print(list[len(list)-1])
print(list)
for a in range(0,len(blist)):
if int(blist[a])<27:
c=int(blist[a])-1
b=b+str(l[c])
else:
e+=1
g=e*d
print(b+g)
\ No newline at end of file
alist = [88, 75, 72, 82, 90, 85, 78, 91]
n=len(alist)
for i in range(0,n-1):
for j in range(0,n-1):
if alist[j] < alist[j+1]:
a=alist[j]
b=alist[j+1]
alist.insert(j+2,a)
alist.pop(j)
else:
continue
print(alist)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment