NIELIT O Level Exam

Which function removes whitespaces from both ends?

Which function removes whitespaces from both ends?

दोनों ends से whitespace हटाने वाला function कौन-सा है?

A. strip()

B. lstrip()

C. rstrip()

D. trim()




Correct Answer is :

A. strip()



Explanation
strip() removes leading and trailing whitespace.

strip() string के शुरुआत और अंत दोनों से whitespace हटाता है।
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad