Skip to content

Instantly share code, notes, and snippets.

@karolosk
Last active February 22, 2024 18:17
Show Gist options
  • Save karolosk/1cd441e32283591d7c6fd6b4e09b00ac to your computer and use it in GitHub Desktop.
Save karolosk/1cd441e32283591d7c6fd6b4e09b00ac to your computer and use it in GitHub Desktop.
"""
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
"""
@karolosk
Copy link
Author

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment