Commit a120e3e1 by BellCodeEditor

save project

parent d7d489a3
for a in range(1,10):
for b in range(1,10):
for c in range(1,10):
if a+b+c==5:
mm=str(a)+str(b)+str(c)
print(mm[1]+mm[2]+mm[3])
n=10000000000-101011
j=str(n)
s=0
for i in j:
if int(i)==9:
s=s+1
print(s)
\ No newline at end of file
for i in range(2018,2999):
n=str(i)
if n[0]==n[3] and n[1]==n[2]:
mink=n[0]+n[1]+n[2]+n[3]
print(mink)
import turtle
pen=turtle.Pen()
pen.pensize(20)
pen.color("red")
pen.forward(200)
pen.right(125)
pen.color("green")
pen.forward(280)
pen.right(-125)
pen.color("blue")
pen.forward(200)
turtle.done()
\ No newline at end of file
for a in range(1,10):
for b in range(1,10):
for c in range(1,10):
for d in range(1,10):
for x in range(2018,2999):
if str(a)==str(d) and str(b)==str(c):
sd=str(a)+str(b)+str(c)+str(d)
print(sd)
for i in range(1,218):
num=str(i)
sum=0
for i in num:
sum+=int(i)
if sum%5==0:
print(num)
\ No newline at end of file
for i in range(1000):
num=str(i)
sum=0
for j in num:
sum=sum+int(j)
if sum==5:
print(num)
\ No newline at end of file
for x in range(2018,3000):
n=str(x)
if n==n[::-1]:
print(x)
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