Skip to content

Erick-WG/Python_mini_projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python_mini_projects

This project is currated to help beginners in python to have a more practicle way of thinking in creating python projects, and enabling them to have a basic understanding of fundamental concepts in python.

Navigating the project

In your file explorer, create a new folder for your projects that we'll clone from here. Open a git bash terminal on this folder by right clicking on the folder we created above.

Run this commands in the terminal window

Cloning the remote repository

git clone https://github.com/Erick-WG/Python_mini_projects.git  

Navigating into the code challenges

After successfuly cloning the code you should see a folder 'Python_mini_projects/'. Navigate into it using the command below. This folder contains all our code.

cd Python_mini_projects

To see all the file contents, enter the following command.

ls

From this point on You can chose a file to takle the corresponding Python quiz question. You can code into the project using this command to open vs code straight from your terminal.

code .

This command will be handy in navigating back one level up the directory.

cd ..

Python Quiz Questions

  1. Write a Python program that prompts the user to enter their name and print out the name
cd UserInput
  1. Define a function called reverse_string that takes a string as input and returns the reverse of the input string. Test this function by reversing the string "hello".
cd stringReversal
  1. Write a conditional if statement that checks if a candidate is eligible to vote, if the age is above 18 print out a message ( You are allowed to vote)
cd eligableVoter

Make sure you navigate one level up the directory to attempt other questions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages