What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-06 18:25:02
if else statement using js projects
if else statement using js projects Add solution -
Python 2022-02-06 15:45:28
for-else in python
list = [99, 98, 97, 96, 95, 94] for number in list: if number == 2: print("There is a 2 in the list") break else: print("There are no 2's in the list") # The else statement is only reached if the for loop # has run all t... Add solution -
Python 2021-11-11 17:04:11
ternary search algorithm
def ternary_search(f, left, right, absolute_precision) -> float: """Find maximum of unimodal function f() within [left, right] To find the minimum, reverse the if/else statement or reverse the comparison. """ ... Add solution