Enrise Tech - Your coding community πŸ˜‰πŸš€πŸ§‘πŸΏβ€πŸ’» Learning to Code with Python 🐍

Title Image

Learn to Code with Python 🐍

We want to learn to write code with the simplest setup and have minimal applications installed for now, so we will use an online tool we can use to write code online: ( later we will install it on our machines so we can code without internet connection! But that is an issue for next time )

Step 1: Sign up with https://replit.com/

Step 2: Register with Gmail
Step 3: Choose Experience

After you have registered: You can choose your experience, and the kind of use you will need for the platform, I recommend, you select personal use and none or beginner

Now we can start building

Now we will start by selecting a template: There are many to choose from, but we will start with Python ( there are many exciting things coming later πŸ˜‰).

Step 4: Setting up our environment
Step 5: Getting Started

Enter the name or title of the lesson and a description! Select Use Template to get started.

Step 6: REPL Workspace guide

Guide on how to use replr, you will be provided with a workspace ( think of this as your environment where you will write code )

There are 4 main sections when it comes to using REPL,

Code Editor: this is the center most middle screen, where you will write your code

The RUN button ( at the top center of the screen ) : This allows you to run the code you have just written.

Output: This is on the right hand most side of the screen: ( After you click the run button

The Sidebar: This is on the left hand side and shows all the files in this folder.

See screenshot below.

Collaborate section: We will use this when we do interactive and collaborative sessions, you can also invite me to checkout and review the REPLS you all have created.

Now you are ready for your first lesson in Python!

Let’s get coding:

Now in the main.py file, we will write a print statement with β€œHello World”

note: ensure its inside the quotes or quotation marks,

You can use this code below and type the same contents on your REPL


# We will write our first piece of code
print("Hello World")

When you are done, you can click on the run button to run the code, see screenshot below:

Now you will have the output on the right hand side of the screen!

Congrats! You have now written your first Python Code 🐍🐍!

You are now ready to start exploring 🐍 more about the Python🐍 Jungle

Stay tuned for more Python Tutorials next!