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.

Below is the work involved to achieve this lab's objective.



The examples and basic exercises in lecture really helped getting some of those simple functions into memory. While thinking of how to write these functions, I was also mindful of how to minimize the amount of entries to reach the desired result.

Comments

Popular posts from this blog

GIS5100 Week10: Final Project

Module 5- Analytics

Module 3- Terrain Visualization