← All Profiles
Rishi Agnihotri 's Activity
Question
2026-08-11
Find the Maximum of Three Numbers
Write a Python function find_max(a, b, c) that takes three numbers as input and returns the largest among them without using the built-in max() function. Input: Three numbers a, b, c. Output: The largest of the three numbers. Constraints: Numbers can be integers or floats. Example: find_max(10, 25, 15) -> 25 Explanation: Compare a, b, ... <a title="Follow" class="read-more" href="https://codedekho.net/follow/" aria-label="Read more about Follow">Read more</a>
View
Question
→
Question
2026-08-11
How to reverse a list in Python?
Here is how you reverse a list in Python: my_list = [1, 2, 3] my_list.reverse() print(my_list)
View
Question
→