Python Arrays and Built-in Math FunctionsArrays: Like other programming languages, Python doesn't have built-in support for Arrays, instead lists are used. But in lists the items stored is not required to be of same data type. Array module is used in order to create and manipulate arrays....Jul 19, 2024·3 min read
Python For Beginner's Day - 10contd... Logical Operators: used to combine the conditional statements. | Operator | Description | | --- | --- | | and | Returns True if both statements are true (x < 4 and x < 7) | | or | Returns True if one of the statements is true(x < 4 ...Jun 10, 2024·2 min read
Python For Beginner's Day - 9Escape Characters: It is represented by backslash(\) followed by the character to insert. To insert a string with double quotes inside the string then usually we get an error, to overcome that this escape character is used like \" Escape ch...Jun 8, 2024·3 min read
Python For Beginner's Day - 8contd.... join(): takes all elements in an iterable(list, dictionary....) and joins them into one string and it must be separated by any string. NOTE: Using Dictionary, the returned values will be keys not the values. lower(): converts stri...Jun 6, 2024·1 min read
Python For Beginner's Day - 7String Methods: contd.... isalnum(): returns true if all the characters in the string are alphanumeric isalpha(): returns true if all the characters in the string are only with alphabets(a - z)/(A-Z) isdecimal(): returns true if all the characters...Jun 5, 2024·2 min read
Python For Beginner's Day - 6String Methods: It has built-in methods which can be used for strings, with this it returns new values but original value will not be changed. capitalize(): converts first character to upper case. casefold(): converts string to lower case. co...Jun 4, 2024·1 min read
Python For Beginner's Day - 5-> Numeric Data Types Conversion: Conversion is possible using int(), float() and complex() methods, but complex numbers cannot be converted to another number type. -> Casting: Casting can be done using constructor functions, int(), float()...Jun 3, 2024·2 min read