Last active
February 22, 2024 18:17
-
-
Save karolosk/1cd441e32283591d7c6fd6b4e09b00ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Write a function called is_palindrome which will check if | |
a given string is a palindrome. (Palindrome are the words/phrases that read the same both ways) | |
example : | |
kayak - kayak: Should Return True | |
lemon - nomel: Should Return False | |
""" | |
""" | |
Write a function called calc_average, which will | |
accept an unknown amount of numbers and it will | |
return their average | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alt:
Write a function named 'merge_lists' that will accept an unknown number of lists
and return a single list containing all elements from the input lists.
For example:
merge_lists([1, 2, 3], [4, 5], [6], [7, 8, 9]) should return [1, 2, 3, 4, 5, 6, 7, 8, 9]