Commit cabf1250 by BellCodeEditor

auto save

parent b810c294
Showing with 49 additions and 0 deletions
def dd(d):
for i in range(0,len(d)-1):
for j in range(i+1,len(d)):
if d[i]<d[j]:
d[i],d[j]=d[j],d[i]
b=len(d)-1
d[b]=d[b]+1
print(d)
dd([])
\ No newline at end of file
while True:
x=input("x=")
a=len(x)
b=a//2
for i in range(b):
if x[i]==x[a-i-1]:
c=1
else:
c=0
if c==1:
print("true")
else:
print("false")
\ No newline at end of file
while True:
x=input("x=")
a=len(x)
b=a//2
for i in range(b):
if x[i]==x[a-i-1]:
c=1
else:
c=0
if c==1:
print("true")
else:
print("false")
def dd(d):
for i in range(0,len(d)-1):
for j in range(i+1,len(d)):
if d[i]<d[j]:
d[i],d[j]=d[j],d[i]
b=len(d)-1
d[b]=d[b]+1
print(d)
dd([1,5,9,3,6])
\ 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