English

Write the Python statement for the following task using the BUILT-IN function/method only: To check whether a string named, message ends with a full stop/period or not. - Computer Science (Python)

Advertisements
Advertisements

Question

Write the Python statement for the following task using the BUILT-IN function/method only:

To check whether a string named, message ends with a full stop/period or not.

One Line Answer
Advertisements

Solution

message.endswith('.')
shaalaa.com
  Is there an error in this question or solution?
2023-2024 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×