Skip to content

AINE-Projects/Essentials-of-Python-Programming

Repository files navigation

Project 5: Essentials of Python Programming

Project: Developing ‘Rock, Paper and Scissors’ game using Python programming

About the project: The project leverages the basic concepts of Python programming such as variables, data types, loop and conditional statements to develop the game of Rock, Papers and Scissors.

Difficulty Level: Beginner Tools to Use: Any Python IDE such as Jupyter Notebook, Azure Data Studio, Google Colaboratory or PyCharm. This project will guide you with working on Jupyter Notebook (Anaconda 3).

Aim: Write a Python program to develop a Rock, Papers and Scissors game to be played against a computer.

Objectives:

  1. Understand the environment of the Jupyter Notebook on Anaconda 3.
  2. Using different cells and comments in the notebook to mention explanations of your program and syntaxes.
  3. Understanding basic data types and lists in Python.
  4. Working with lists and accessing its elements.
  5. Taking user inputs and printing them.
  6. Working on the random library
  7. Initializing the value of a variable
  8. Creating loops asking the play the game multiple times unless the user enters Q
  9. Using conditional operators to play the game with different options in different games.

Dataset: This Project does not require any specific dataset. You can create your own variables and values to develop the game. In the list that you create, mention these elements must be there: Rock, Paper, and Scissors.

Skills to Use (Mandatory):

  1. Using Python 3 in Jupyter Notebook
  2. Using different types of cells – Code, Markdown and Heading
  3. Adding comments in the code cells
  4. Creating variables with basic data types
  5. Creating list variables
  6. Taking inputs from the users
  7. While loop
  8. Using comparison operator to check the inputs
  9. Conditional statements
  10. Nested conditional statements in Python
  11. Break statement
  12. Concatenated print statements

Skills to Use (Optional):

  1. Using For loop to let the user opt for how many rounds he/she wants to play the game.
  2. Formatting text inputs from the user so that the program does not show inputs invalid if the inputs are not case-sensitive.
  3. Use isdigit() to mark the input invalid if it is a digit.
  4. Add two more elements in the game – Lizard and Spock. The game structure should look like: sample

Resources:

  1. Understanding Jupyter Notebook and its interface Article: How to use Jupyter Notebook – by Codecademy Video: Jupyter Notebook System – by Coursera
  2. Learning Python (for Beginners) - By LinkedIn Learning: https://www.linkedin.com/learning/learning-python
  3. Comments in Python : https://youtu.be/lwmAVBMEzkM
  4. Variables – Integers: https://youtu.be/rHjAiQDw9V8
  5. Variables – Strings: https://youtu.be/36AClUO0Yi8
  6. User Input: https://youtu.be/YLS7-ZY9HOE
  7. Formatting String Inputs: https://youtu.be/dxKQAdsVg4o
  8. Comma Separated String Printing: https://youtu.be/5O8-tKqHI5I
  9. Comparison operators: https://youtu.be/ikB7_rlRD6w
  10. Conditional statements: https://youtu.be/Ecm6La33E1k
  11. Nested conditional: https://youtu.be/hadVXHyBKfU
  12. While loop: https://youtu.be/F2Ihn9b1_OM
  13. Conditional Boolean strings (isdigit(), istitle()): https://youtu.be/RWzmEWp4dII
  14. Break() and Continue() in a WHILE loop: https://www.youtube.com/watch?v=BTaPo33TBIM
  15. Variables – Knowing the Data Types: https://youtu.be/KJBdE6u-Uho
  16. Addition – Numbers & Strings: https://youtu.be/BbkG03VKoWo
  17. Variable Addition: https://youtu.be/HpuQrNUp38s
  18. Creating a list in Python: https://youtu.be/bRtbAg5v2TM
  19. Accessing the elements of a list: https://youtu.be/QkOftrcxtCc
  20. Adding element into a list: https://youtu.be/dGTNjOOqEcI
  21. Delete specific items from a list: https://youtu.be/OKw9y3MgBfY

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published