Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions palindrome_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,22 @@ def is_palindrome(s):
if __name__ == "__main__":
word = input("Enter a word: ")
print(f"{word} is a palindrome: {is_palindrome(word)}")
# hello_world.py

def greet():
print("Hello, Hacktoberfest!")

def ask_participation():
print("Are you participating in Hacktoberfest?")

def share_resources():
print("Check out the official website for resources: https://hacktoberfest.com")

def say_goodbye():
print("Goodbye! See you at Hacktoberfest!")

if __name__ == "__main__":
greet()
ask_participation()
share_resources()
say_goodbye()