CourseWare Wiki
Switch Term
Summer 2023 / 2024
Summer 2022 / 2023
Summer 2021 / 2022
Summer 2020 / 2021
Summer 2019 / 2020
Summer 2018 / 2019
Summer 2017 / 2018
Older
Search
Log In
b182
courses
pri-bootcamp
solutions
Warning
This page is located in archive. Go to the latest version of this
course pages
.
Differences
This shows you the differences between two versions of the page.
View differences:
Side by Side
Inline
Go
Link to this comparison view
Both sides previous revision
Previous revision
2019/09/19 14:07 kubikji2
2019/09/19 13:58 kubikji2
2019/09/09 22:02 seredlad Suspicious code fixed
2019/09/09 21:26 seredlad Alternative solution added
2019/09/09 21:17 seredlad Solutions completed
2019/09/06 09:28 seredlad added more solutions from mareddan
2019/09/03 11:03 seredlad added solurions by mareddan
2019/07/22 12:50 seredlad
2019/07/22 12:48 seredlad
2019/07/18 20:58 seredlad
2019/07/18 20:55 seredlad
2019/07/18 20:38 seredlad
2019/07/18 12:07 seredlad
2019/07/18 11:46 seredlad
2019/07/11 11:36 seredlad
2019/07/11 11:31 seredlad
2019/07/11 11:27 seredlad
2019/07/11 11:19 seredlad
2019/07/11 11:00 seredlad
2019/07/11 10:51 seredlad
2019/07/11 10:45 seredlad
2019/07/11 10:30 seredlad Přesun řesení úloh sem
2019/07/10 14:55 seredlad
2019/07/10 14:19 seredlad Schování řešení za linky
2019/07/10 14:05 seredlad
2019/07/10 14:04 seredlad
2019/07/10 14:01 seredlad [Den 1 - Úkoly na odpoledne]
Go
2019/09/19 14:07 kubikji2
2019/09/19 13:58 kubikji2
2019/09/09 22:02 seredlad Suspicious code fixed
2019/09/09 21:26 seredlad Alternative solution added
2019/09/09 21:17 seredlad Solutions completed
2019/09/06 09:28 seredlad added more solutions from mareddan
2019/09/03 11:03 seredlad added solurions by mareddan
2019/07/22 12:50 seredlad
2019/07/22 12:48 seredlad
2019/07/18 20:58 seredlad
2019/07/18 20:55 seredlad
2019/07/18 20:38 seredlad
2019/07/18 12:07 seredlad
2019/07/18 11:46 seredlad
2019/07/11 11:36 seredlad
2019/07/11 11:31 seredlad
2019/07/11 11:27 seredlad
2019/07/11 11:19 seredlad
2019/07/11 11:00 seredlad
2019/07/11 10:51 seredlad
2019/07/11 10:45 seredlad
2019/07/11 10:30 seredlad Přesun řesení úloh sem
2019/07/10 14:55 seredlad
2019/07/10 14:19 seredlad Schování řešení za linky
2019/07/10 14:05 seredlad
2019/07/10 14:04 seredlad
2019/07/10 14:01 seredlad [Den 1 - Úkoly na odpoledne]
2019/07/10 13:46 seredlad [Den 1]
2019/07/10 13:39 seredlad
2019/07/10 13:24 seredlad
2019/07/10 13:18 seredlad created
Go
courses:pri-bootcamp:solutions [2019/09/19 13:58]
kubikji2
courses:pri-bootcamp:solutions [2019/09/19 14:07]
kubikji2
Line 1642:
Line 1642:
<code python>
<code python>
-
#
## Proposed by mareddan ###
+
#
Jirka
def fibonacci(x):
def fibonacci(x):
if x <= 0:
if x <= 0:
Line 1650:
Line 1649:
return 1
return 1
return fibonacci(x - 1) + fibonacci(x - 2)
return fibonacci(x - 1) + fibonacci(x - 2)
+
-
+
number
=
int(input(
"
Zadej poradi ve fibonacciho posloupnosti
"
))
-
if __name__ =
= "
__main__
"
:
+
result = fibonacci(number)
-
number = 8
+
print("
Vysledek je
", result)
-
result = fibonacci(number)
+
-
print(
str(number) +
"
th fibonacci number is:
", result)
+
</code>
</code>
courses/pri-bootcamp/solutions.txt
· Last modified: 2019/09/19 14:07 by
kubikji2