Python Beginners – Code Golf Questions
1. Reverse a String: Input a string and print it reversed.
2. Sum of Digits: Input a number and output the sum of its digits.
3. Check Palindrome: Input a string, output 'Yes' if it’s a palindrome, otherwise 'No'.
4. Count Vowels: Input a string and print the count of vowels (a, e, i, o, u).
5. Find Maximum: Input a list of numbers and print the maximum.
6. Even or Odd: Input a number and print 'Even' or 'Odd'.
7. Fibonacci Sequence: Input n and print the first n Fibonacci numbers.
8. Factorial: Input a number and print its factorial.
9. Word Count: Input a sentence and output the number of words.
10. Dictionary Frequency Counter: Input a string and output a dictionary with frequency of
each character.