Module 2- Python Fundamentals Part 1
Continuing Python fundamentals this week, we get our hands on with Functions!
We learned how to assign string variables, had to use methods and functions to manipulate strings and lists, and finally perform a basic math function.
It started by creating a string using my full name-- stringName = "Julieta Ramos"
Then creating a list by using the split method-- listName = stringName.split(" ")
After printing my last name, a new variable called lastNameLen was created to find the length of my last name. This was done by counting the letters in my last name using the function len.
We learned how to assign string variables, had to use methods and functions to manipulate strings and lists, and finally perform a basic math function.
It started by creating a string using my full name-- stringName = "Julieta Ramos"
Then creating a list by using the split method-- listName = stringName.split(" ")
After printing my last name, a new variable called lastNameLen was created to find the length of my last name. This was done by counting the letters in my last name using the function len.
Below is the work involved to achieve this lab's objective.
Comments
Post a Comment