TheLearningDev's Blog

TheLearningDev's Blog

Follow
homeBuild Your Own Python Project
Tag

python beginner

#python-beginner

More content

Read more stories on Hashnode


Articles with this tag

What is __name__ == "__main__" in Python?

Bhavani RaviBhavani Ravi
Nov 22, 20221 min read

Python snippets use name == "main" checks to ensure that the module-specific code is run only when they are run directly via Python. If you are a...

What is __name__ == "__main__" in Python?

When to use List vs Dict in Python?

Bhavani RaviBhavani Ravi
Oct 28, 20222 min read

Lists Only a single data point for each item To find an item we have to loop the whole list my_books = ["Atomic Habits", "Life is what you make it",...

When to use List vs Dict in Python?

Python: Iterables and Iterators

Bhavani RaviBhavani Ravi
Sep 24, 20222 min read

I was teaching PythonToProject Bootcamp the other day. As an add-on module, I was teaching Iterators and how to implement custom iterators in...

Python: Iterables and Iterators

"yield" keyword in Python

Bhavani RaviBhavani Ravi
Sep 23, 20221 min read

What does the "yield" keyword do in Python? · "yield" is a Python keyword that can be used in a function instead of return. def scale_vector(vector,...

"yield" keyword in Python

How to Run a Script when Python Shell Starts up?

Bhavani RaviBhavani Ravi
Jun 25, 20222 min read

What's the use of the PYTHONSTARTUP variable? · In the previous post, we explored various ways to clear the Python shell. tl;dr import...

How to Run a Script when Python Shell Starts up?

How to Clear Python Shell (IDLE)?

Bhavani RaviBhavani Ravi
Jun 23, 20221 min read

Were there times when Python idle prints pages of traceback, or you've fiddled around long enough now you're at the bottom of the screen? All you need...

How to Clear Python Shell (IDLE)?