DEV Community

Cover image for Python Zero to Hero #Beginners⚡

Python Zero to Hero #Beginners⚡

vivek patel on November 02, 2020

As a 3+ years Python Programmer I would like to share some basics of Python, This Tutorial is for absolute beginners and who want to revise python ...
Collapse
 
devmehta profile image
Dev Mehta

Awesome Post. Saved a lot of time🔥
Here is why I would recommend it to beginners:

  • All the basics are explained quite easily
  • Explanation is to the point
  • Matches up my style of learning
  • And also those memes😁
Collapse
 
vivekcodes profile image
vivek patel

Thanks❤🙂

Collapse
 
zacland profile image
Zac

Hi !
I think there is an error in section "Mutable objects"

lists are mutable in python

color = ["red", "blue", "green"]
print(color)
["red", "blue", "green"]
color[0] = "pink"
color[-1] = "orange"
print(color)
["red", "blue", "green", "orange" ]


I think, the final result is :
['pink', 'blue', 'orange']

No ?! :D

Collapse
 
vivekcodes profile image
vivek patel

Read my words again i mentioned that lists are mutable in python!

Collapse
 
zacland profile image
Zac

No doubt on what you say :)
I just tell you : If i write your example line by line, the final result is false :D

Thread Thread
 
vivekcodes profile image
vivek patel

Thanks 😊 I've added one photo for better understanding😃

Collapse
 
clarejoyce profile image
Ngoran Clare-Joyce

Great article for beginners. The presentation of the material is great and all concepts discussed are well explained.

There is this line under mutable objects that I believe is a mistake. It says

"In simple words, an immutable object's value can be changed even after it is created."

I think that should be mutable instead.

Collapse
 
vivekcodes profile image
vivek patel

Yes it was typo error for now it was fixed!thank you for your contribution🙂❤

Collapse
 
vivekcodes profile image
vivek patel • Edited

Thanks! i feel it ❤casting is not necessary in python but when i learned python from different sources they added one same topic python casting so that's why i added casting here! python is so smart that it will automatically detect data types we don't need to specify ! Yes i left many topics like finally,pass,raise,class,continue,lambda,from,assert,del,global,not,with,async,or,yield and more but i would also like to add that i didn't miss any important topic for beginners🙂❤

Collapse
 
ethenhunt12 profile image
Ethen hunt

This post is a quick revision basic python. Great work

Collapse
 
vivekcodes profile image
vivek patel

Thanks 🙂

 
vivekcodes profile image
vivek patel

🙂

Collapse
 
waylonwalker profile image
Waylon Walker

Nice set of examples, each one could become a post of its own. Nice to have them all in on post.

Collapse
 
ayabouchiha profile image
Aya Bouchiha

Great article