ASAnuj Shuklainanujshukla.hashnode.dev·Mar 25, 2021 · 2 min readPython TricksAsterisk (*) is commonly used to multiply Integers/Float/Double but in python they are used with Strings, Arrays and Tuples as well. Let's see how s = "shy" print(s*3) "shyshyshy" It is very useful while solving pattern designing problems. Let us...00
ASAnuj Shuklainanujshukla.hashnode.dev·Mar 24, 2021 · 2 min readPython Tricksprint(array, end=" ") Everytime you print something in python it automatically creates a new line. It is very useful unless you want to print something in the same line for that you use end=" " . print("whatever you want to", end="") set() This is...00