Python Programming - Console Input/Output - Discussion
Discussion Forum : Console Input/Output - General Questions (Q.No. 42)
42.
How can you print the first and last characters of a string?
Answer: Option
Explanation:
To print the first and last characters of a string, use indexing with
string[0] and string[-1].
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers