Community

Start a Thread


Notifications
Subscribe You’re not receiving notifications from this thread.

What are Strings and String Operations? (Main Thread)

General • Asked over 4 years ago by Jake from AlgoDaily

Jake from AlgoDaily Commented on Sep 06, 2019:

This is the main discussion thread generated for What are Strings and String Operations?.

Jimmy Shephard Commented on Apr 13, 2022:

This needs an update, Given a string email the claim is that the statement below prints the count of the given character but it results in an error because count function is unknow
> print(count(email, 'i')) #prints 2

Not sure if the intention was to introduce another count function but count needs to be invoked on the string via variable name as shown below,

> email.count("i") # prints 2

abbiemccann Commented on Jul 23, 2022:

string is a unicode character that store only single variable and if you want to add multiple char then you have to make an array for this.e.g you want to take an input of phrase like write my essay then you have to make an array for this. A string operation includes concatenation, scanning and translations.