TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Python 3 – String Manipulation and Formatting

2 pointsby satyajugranover 5 years ago

1 comment

eesmithover 5 years ago
<p><pre><code> Returns the total number of characters in a string print(s.count(&quot;&quot;)) </code></pre> That should be len(s). Note, for example:<p><pre><code> &gt;&gt;&gt; &quot;A&quot;.count(&quot;&quot;) 2</code></pre>