My Journey Learning Python: Also A Beginner's Guide

in StemSocial14 days ago

sourcing

Hello everyone,

Welcome to this Python tutorial for beginners. I am happy to share with you some tips on how to learn Python as a programming language. The interesting part about python is that it is easy both in reading and writing. Let us embark on this adventure of learning python together!

Some things I have learnt so far

To begin, let’s go over what variables are. In python, they act like containers where we can store things. Each container gets a label, and we put stuff in them. For instance, we may have a container labeled as “number” which has 5 inside it. Sounds simple?

number = 5

But what about when we want to communicate? To do that, we can use print(). It’s like talking to the computer. We just have to put what we want to say in the parentheses.

print("Hello, World!")

When this code is run, the computer will say "Hello, World!".

Types of Data in Python

Python has different types of data. The most common ones are:

  1. Numbers: 5, 3.14, and -7 are examples of numbers that Python can work with.

  2. Strings: Words or sentences are represented as strings in Python. We enclose them in quotes like "Hello, World!".

  3. Lists: Lists are collections of items. All items are enclosed in square brackets [] and separated by commas.

  4. Tuples: Lists and tuples have similar properties along with slight differences; While lists use square brackets [], tuples use round brackets ().

  5. Dictionaries: If you’d like not to locate items using numbers as done by lists; you may decide to employ words which is characteristic feature for dictionaries unlike other data types which store multiple values having associated keys

How Am I Learning?

I am making use of a tutorial on the Internet that is free and I have found it very useful. They break everything down, so it is easier to understand while also giving plenty examples too. Apart from that, what I do is practicing writing my own code sometimes I make mistakes but that’s okay because that’s how we learn.

My opinion about Python

From my point of view as a beginner, python language is fantastic. It has simple syntax rules which make it easy for anyone to understand and use; besides this feature enables us to execute various tasks using different methods in programming. Therefore what am looking forward for now is continuing with my studies so as to see where else can be applied.

That was just some basics of learning python from an amateur perspective like mine hope you’ve gained something out of this! If you’re at the initial stage don’t panic if things get a bit blurry initially just keep moving step by step until everything clicks into place happy coding.

Posted Using InLeo Alpha

Sort:  

Congratulations @justinthenerd! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 300 upvotes.
Your next target is to reach 400 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

Our Hive Power Delegations to the April PUM Winners
Feedback from the May Hive Power Up Day
Hive Power Up Month Challenge - April 2024 Winners List