July 13, 2023

Basic python -4 (QNA)

Q1: What is the internal structure of Python strings? A1: Python strings are sequences of Unicode characters, i.e., an ordered collection of characters. This means they maintain a left-to-right positional ordering among the characters. Each character in a string has a unique index, with the first character having an index of 0. Python strings are …

Basic python -4 (QNA) Read More »

Basic python-3 (QNA)

Q1: How are floating constants represented in Python? Give examples to support your answer. A1: Floating constants, or floating-point numbers, are represented in Python by including a decimal point in the number. Python allows for a compact representation of floating-point numbers when the numbers are too large or too small. This is done using scientific …

Basic python-3 (QNA) Read More »

Scroll to Top