GRGaurav Rohillaingauravnotes.hashnode.dev·Jun 29, 2023 · 3 min readL6 - Conditional Expressionsif statement in python Indentation Python relies on indentation (whitespace at the beginning of a line) to define scope in the code. Other programming languages often use curly-brackets for this purpose. if statement without identation will raise an...00
GRGaurav Rohillaingauravnotes.hashnode.dev·Aug 13, 2022 · 4 min readL5 Dicitionary & SetsDICITIONARY Dicitionary is used to store data in key value pair format The dictionary is the data type in Python, which can simulate the real-life data arrangement where some specific value exists for some particular key. It is the mutable data-struc...00
GRGaurav Rohillaingauravnotes.hashnode.dev·Apr 25, 2022 · 2 min readL 4 - Lists And TuplesLISTS Lists are mutable datatype in python. Python lists are containers to store values of any datatype. LIST SLICING How to get character of a given index in a list in python How to slice a given list. SYNTAX - name_of_variable[start : end : stop]...00
GRGaurav Rohillaingauravnotes.hashnode.dev·Apr 7, 2022 · 4 min readL 3 - Strings***STRINGS ARE IMMUTABLE DATATYPE IN PYTHON *** CONCATENATION OF STRING STRING SLICING How to get the character of a given index in a string in python How to slice a given string **SYNTAX - ** name_of_variable[ start : end : step ] **NOTES - ** If...00
GRGaurav Rohillaingauravnotes.hashnode.dev·Apr 6, 2022 · 2 min readL 2 : Variables And DatatypesWAYS TO USE SINGLE QUOTES , DOUBLE QUOTES AND TRIPLE QUOTES IN A STRING NOTE - Multi - line string can only be stored in triple quotes. If you want some inverted commas to be the part of your string then you can use triple quotes. L-2 , 50:00 M...01G