Learning powerful Python one-linersOne-liners shorten the amount of code that must be written and make it cleaner, but they can be challenging for beginners to grasp. 1. One-liner loop Let's begin by creating a list of integers from 0 to 10 using a loop Normal Program num_list=[] for ...Sep 18, 2022 · 4 min readrishavnathpati.hashnode.dev
5 Python Features That I Was Unaware Even ExistedWhen you read anything for pleasure, you often pick up on intriguing details that you may have otherwise overlooked. So, the following is a collection of facts that I found interesting. Can you perform that in Python? 1. Function Attributes You may ...Sep 18, 2022 · 6 min readrishavnathpati.hashnode.dev