/2021-Mentorship-Program-Python

As being a mentor of my 3 mentees, this repository includes their assignments and solutions of studies.

Primary LanguagePythonMIT LicenseMIT

2021-Mentorship-Program-Python

As being a mentor of my 3 mentees, this repository includes their assignments and solutions of studies.

Week 1 Assignment

Rock Paper Scissors with very basics of Python

  • Rock smashes scissors.
  • Paper covers rock.
  • Scissors cut paper. You play this game aganist computer and who will the 3 as score will be winner!

Benefits: variables, input, print, loops, if statements, function usage, random module

Week 2 Assignment

Refactor the Rock Paper Scissors game with try-except block.

  • Using Try-Except block for control input errors.
  • Using recursive structure for call functions again.

Benefits: Try-Except, Error Handling, Fundamentals of Recursive Structures

Week 3 Assignment

Testing the Rock Paper Scissors game code with unittest.

  • Understanding the fundamentals of software testing.
  • Defining test cases and corner/edge cases.
  • Get experience with unittest.
  • Explain the file tree/structure and import local modules
  • Discuss about init.py
  • Explain the TDD with open source project examples.

Benefits: Testing, unittest, class structures, test-cases, edge or corner cases , import local modules