Tarun Chandra has Published 12 Articles

How to get a string left padded with zeros in Python?

Tarun Chandra

Tarun Chandra

Updated on 19-Oct-2022 12:10:52

18K+ Views

A string is a group of characters that can represent a single word or a whole sentence. In Python there is no need to declare strings explicitly we can directly assign them to a literal. Therefore, easy to use them. A string is an object of the String class, which ... Read More

How to invert case for all letters in a string in Python?

Tarun Chandra

Tarun Chandra

Updated on 19-Oct-2022 12:02:47

3K+ Views

A string is a group of characters that can represent a single word or a complete sentence. In Python there is no need to declare variables explicitly using the datatype specifier you can directly assign them to a literal. Therefore, compared to other technologies like Java it is easy to ... Read More

Advertisements