myStr = "MISSISSIPPI" print(myStr[:4] + "#" + myStr[-5:])
MISSI#SIPPI
MISS#SIPPI
MISS#IPPIS
MISSI#IPPIS
myStr[:4]
extracts the first 4 characters, which are "MISS"
.myStr[-5:]
extracts the last 5 characters, which are "SIPPI"
."#"
in between, resulting in "MISS#SIPPI"
.The SELECT statement when combined with \(\_\_\_\_\_\_\) clause, returns records without repetition.
In SQL, the aggregate function which will display the cardinality of the table is \(\_\_\_\_\_\).
Assertion (A): CSV file is a human-readable text file where each line has a number of fields, separated by a comma or some other delimiter.
Reason (R): writerow() method is used to write a single row in a CSV file.
Mark the correct choice:
Read the programmes related to the proposed Bharatmala umbrella scheme carefully and choose the correct option:
Backward areas, religious and tourist places connectivity programme
To interconnect the four metropolitan cities of the country
To develop State roads in adjoining coastal areas
To connect non-major ports in coastal states