Commit 190e9343 by BellCodeEditor

save project

parent b71dd3bb
Showing with 49 additions and 0 deletions
import random
b=int(input())
a=0
p=[]
i=0
while True:
for j in range(b):
p.append(random.randint(1,100))
if p[i]<=55 and p[i]>=50:
print(p[i])
break
else:
continue
i=i+1
\ No newline at end of file
'''
def func(n):
if n<=2:
return 1
elif n>2:
value=func(n-1)+func(n-2)
return value
result=func(5)
'''
a=int(input())
a1=1
a2=1
a3=2
for i in range(a-3):
a1=a2
a2=a3
a3=a1+a2
print(a3)
\ No newline at end of file
a=input()
print(len(a))
\ No newline at end of file
a=input()
b=list(a)
a=len(b)-1
for i in range(len(b)):
if a%2==0:
print(b[a])
a=a-1
a=int(input())
for i in range(a):
\ 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