Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added python code for finding even and all fibonacci series less than N #1229

Merged
merged 4 commits into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
<!-- Add to the bottom of the list -->

<a class="box-item" href="https://github.com/fineanmol"><span>Anmol Agarwal</span></a>
<a class="box-item" href="https://github.com/rocksaini"><span>Deepak Saini</span></a>
<a class="box-item" href="https://github.com/Amitava123"><span>Amitava Mitra</span></a>
<a class="box-item" href="https://github.com/philson-philip"><span>Philson Philip</span></a>
<a class="box-item" href="https://github.com/SHIV1003"><span>Shivam Goyal</span></a>
Expand Down Expand Up @@ -467,7 +466,10 @@
<a class="box-item" href="https://github.com/manshadchangampalli"><span>Manshad</span></a>
<a class="box-item" href="https://github.com/abhinnxo"><span>Abhinn Krishn</span></a>
<a class="box-item" href="https://github.com/Tharunkumar001"><span>Tharun Kumar</span></a>
<a class="box-item" href="https://github.com/Ishitav03"><span>Ishita Verma</span></a>
<a class="box-item" href="https://github.com/Ishitav03"><span>Ishita Verma</span></a>
<a class="box-item" href="https://github.com/DarkHunter1749"><span>Manoj Sadanala</span></a>
<a class="box-item" href="https://github.com/rocksaini"><span>Deepak Saini</span></a>




Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
N = int(input())
n = []
b = []
n1,n2 = 0,1
while n2<N:
if n1 != n2:
n.append(n2)
n1, n2 = n2, n1+n2

print(n)
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
N = int(input())
n = []
b = []
n1,n2 = 0,1
while n2<N:
if n1 != n2:
n.append(n2)
n1, n2 = n2, n1+n2
for i in range(len(n)):
a = n[i]
if a % 2 == 0:
b.append(a)
print(b)