Reading Time: 1 minutesComputing Scrabble Score (using a Dictionary) in Python Computing Scrabble Score (using a Dictionary) in Python Python script to compute Scrabble score for a word using a dictionary. Try it […]
PyPro #11 Shuffling a deck of cards (using Lists)
Reading Time: 1 minutesShuffling a deck of cards (using Lists) in Python Shuffling a deck of cards (using Lists) in Python Python script to shuffle a deck of cards using lists. Try it […]
PyPro #10 Leap Year or Not
Reading Time: 1 minutesleap year or not in Python leap year or not in Python Python program to determine whether a given year is a leap year or not. A leap year is […]
PyPro #9 Odd or Even
Reading Time: 1 minutesOdd or Even in Python Odd or Even in Python Python code to determine whether the given integer is odd or even. Even numbers are multiples of 2, whereas odd […]
PyPro #8 Highest Common Factor
Reading Time: 1 minutesHighest Common Factor in Python Highest Common Factor in Python Python code to compute the Highest Common Factor (HCF) of two positive integers Try it here. See also: Python 101 […]
PyPro #7 String Palindrome
Reading Time: 1 minutesString Palindrome in Python String Palindrome in Python Python script to determine whether a given string is a palindrome or not. Try it here. See also: Python 101 Object Oriented […]
PyPro #6 Prime numbers within a range
Reading Time: 1 minutesPrime numbers within a range in Python Prime numbers within a range in Python A program to print Prime Numbers in an interval of 0 to the number entered by […]
PyPro #4 Guess the Number
Reading Time: 1 minutesGuess the Number in Python Guess the Number in Python Python code for the famous game Guess the Number. Ask the player to guess a number between 1 and 100 […]
Why choose Python?
Reading Time: 6 minutesWhy choose Python? Why choose Python? If you are wondering why to learn Python, well, here's why: Easiest-to-learn & Most-enjoyable-to-use: Python is arguably the easiest-to-learn programming language, and the most […]
Python: Ternary Operator/Conditional Expression - x if condition else y
Reading Time: 1 minutesTernary Operator/Conditional Expression in Python Ternary Operator/Conditional Expression in Python A Ternary Operation involves 2 operators and 3 operands. Python offers a shorthand for if-then-else constructs using its ternary operator […]

