Some of these challenges will only involve writing python program, while others require building circuits as well.

  1. Difficulty level: Easy. Write a program that gets a string as input and prints the length of the string. Refer to https://w3cloud.com/academy/lesson-2/
  2. Difficulty level: Easy. Write a program that tells if the input number is an odd or even number. Tip: Use modulo operator %. Refer to https://w3cloud.com/academy/lesson-2/
  3. Difficulty level: Medium. Write a calculator. First get the operator (+, -. * or  /, or q to quit the program), then get two numbers and perform the requested operation. Tip: Use if statements. Refer to https://w3cloud.com/academy/lesson-2/
  4. Difficulty level: Medium. Write a program that gets a phrase as input and prints the word count and the length of each word. Tip: Use python’s string function split(” “) which splits words and creates a list of words. Refer to https://w3cloud.com/academy/lesson-3/
  5. Difficulty level: Medium. Write a program that reverses a string. Tip: find the length of the string and iterate (for statement) backwards and build the string. Refer lesson 2 and lesson 3.
  6. Difficulty level: Medium.Write a program that prints a number in words. Example: entering 421 should print four two one. Tip: use list or set. Refer to lesson 3.
  7. Difficulty level: Medium. Write a program to print a number in expanded form. Example if you input 45234, it should print 4 X 10000 + 5 X 1000 +2 X 100 +3 X 10 + 4 X 1. Tip: Use modulo operator (%), to find if there is a reminder.
  8. Difficulty level: Medium. Write a program to convert a number from decimal to binary. Tip: Very similar to the previous problem. Instead of modulo 10, here you should do modulo 2, to find the reminder of dividing by 2.
  9. Difficulty level: Easy. Build an electronic circuit that lights an LED for 5 seconds.
  10. Difficulty level: Medium. Build an electronic circuit with two LEDs connected to two different GPIO pins. Try different patterns with the two LEDs. Like alternate blink, blink simultaneously etc.