Skip to content

Add files via upload#7

Open
edaraa2 wants to merge 1 commit intoAssignment---1-2/7/2024from
Assignment---1
Open

Add files via upload#7
edaraa2 wants to merge 1 commit intoAssignment---1-2/7/2024from
Assignment---1

Conversation

@edaraa2
Copy link
Copy Markdown
Owner

@edaraa2 edaraa2 commented Mar 23, 2024

String Operations:
Strings are fundamental building blocks in programming. They are essentially sequences of characters that represent text data. String operations allow you to manipulate and work with these text sequences in various ways. Here's a glimpse into some common string operations:
Accessing Characters:

You can access individual characters within a string using their index positions. The first character has an index of 0, the second character has an index of 1, and so on.

  • Slicing: You can extract a portion of a string using slicing syntax. This allows you to create substrings from the original string.

  • Concatenation: You can join multiple strings together to create a new string. The plus operator (+) is often used for concatenation.

  • Finding Length: The length of a string refers to the total number of characters it contains. There are built-in functions to determine the string length.

  • Searching: You can search for the presence of a specific substring within a string. This is useful for finding patterns or specific text chunks.

  • Modifying Case: You can convert a string to all uppercase or all lowercase letters. Some languages also offer functionalities for more specific capitalization schemes.

  • Replacing Substrings: You can replace occurrences of a specific substring within a string with another substring.

  • Splitting and Joining: You can split a string into a list of substrings based on a delimiter (e.g., comma, space). Conversely, you can join a list of strings into a single string using a specified delimiter.

String Operations
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@edaraa2 edaraa2 self-assigned this Mar 23, 2024
@edaraa2 edaraa2 requested a review from nikshepkulli March 23, 2024 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant