Skip to main content
added 65 characters in body
Source Link
0xffcourse
  • 2.8k
  • 3
  • 14
  • 27

Python 3, 56 53 5350 bytes

  • Thanks to @Fedone for 3 bytes: as a function
m=int(inputdef f()m):
 a=b=1
 while a<m:b,a=a,a+b
 print(a==m) 

Try it online!Try it online!

Python 3, 56 53 bytes

m=int(input())
a=b=1
while a<m:b,a=a,a+b
print(a==m) 

Try it online!

Python 3, 56 53 50 bytes

  • Thanks to @Fedone for 3 bytes: as a function
def f(m):
 a=b=1
 while a<m:b,a=a,a+b
 print(a==m)

Try it online!

deleted 1 character in body
Source Link
0xffcourse
  • 2.8k
  • 3
  • 14
  • 27

Python 3, 5656 53 bytes

m=int(input())
a=b=1
while a<m:c=a;a+=b;b=cb,a=a,a+b
print(a==m) 

Try it online!Try it online!

Python 3, 56 bytes

m=int(input())
a=b=1
while a<m:c=a;a+=b;b=c
print(a==m) 

Try it online!

Python 3, 56 53 bytes

m=int(input())
a=b=1
while a<m:b,a=a,a+b
print(a==m) 

Try it online!

Source Link
0xffcourse
  • 2.8k
  • 3
  • 14
  • 27

Python 3, 56 bytes

m=int(input())
a=b=1
while a<m:c=a;a+=b;b=c
print(a==m) 

Try it online!