Python file seek function | Read a file from index | move poin​ter

Python file seek() function sets the current file position in a file stream. The seek function is useful when operating over an open file. Using this function you can move into a file or can say used to change the current cursor position in Python. Syntax It’s important to note that its syntax is as follows: Read More…


Python uppercase function upper() | convert string to Uppercase example

How to you convert a string to uppercase in Python? The answer is Using a python inbuilt function upper(). Same as used lower() function in python. An upper() function converts all string to lowercase characters (letters) into uppercase letters. Syntax The syntax of upper() method is:

Parameters Python upper() function doesn’t take any parameters. Return Read More…


Python lowercase function lower()| convert string to lowercase example

How to convert string to lowercase in Python? #Is there any way to convert an entire user inputted string from uppercase, or even part uppercase to lowercase? Answer: The Python string lower() inbuild function converts all characters in a string into lowercase characters and returns it. Syntax The syntax of lower() method below:

Parameters Read More…