❌

Normal view

There are new articles available, click to refresh the page.
Before yesterdaySedhupathy M

Python - List Methods & Tasks II

By: SM
1 August 2024 at 01:22

Even though I had done the tasks beforehand, watching them being done in class today taught me new things.

I learned that I could use Python's in-built list methods more, instead of falling back to for loop all the time.

For example, I could use the extend method (rather than for loop and append method) to expand a list with the contents of another list. Likewise, I could use the clear method (rather than for loop and remove method) to empty a list.

Unless there is a specific need for using the for loop, like I need to check a condition on individual elements before adding them to or removing them from the list, the code looks much cleaner this way.

Hello World

By: SM
8 July 2024 at 18:01

Today, I joined a free online course on Python by the Kaniyam Foundation. And, this blog is to document my progress throughout the course.

In the first live session this evening, a lot of course details were shared. Helpful information was provided regarding the installation of Python on our machines. As is customary, we began by learning to print "Hello, World!" using the print statement. Towards the end of the session, the importance of free and open-source software (FOSS) was also emphasized.

❌
❌