From the course: Transition from C# to Python
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Strings
- [Instructor] String operations are pretty common in just about every language and Python is no exception. So let's compare some common C-sharp string functions to see how they work in Python. So in the strings folder, let's go into string CS and open up the program file. All right, so let's scroll down and here in my code, there are a variety of string operations, such as getting the string length and then, working with some sub string functions, like starts with and ends with, seeing if string contains some information, getting some strings, some replacement and then we have some string concatenation and string interpolation. So what we're going to do is build each of these cases in our Python code. So let's go ahead and in the strings Y folder, we're going to open up strings underscore start for the PY version. Alright, let's go ahead and try some of these out. Now, we've already seen how to get the length of a string…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.