Skip to content
Felix
  • Topics
    • My List
    • Felix Guide
    • Asset Management
    • Coding and Data Analysis
      • Data Analysis and Visualization
      • Financial Data Tools
      • Python
      • SQL
    • Credit
      • Credit Analysis
      • Restructuring
    • Financial Literacy Essentials
      • Financial Data Tools
      • Financial Math
      • Foundations of Accounting
    • Industry Specific
      • Banks
      • Chemicals
      • Consumer
      • ESG
      • Insurance
      • Oil and Gas
      • Pharmaceuticals
      • Project Finance
      • Real Estate
      • Renewable Energy
      • Technology
      • Telecoms
    • Introductory Courses
    • Investment Banking
      • Accounting
      • Financial Modeling
      • M&A and Divestitures
      • Private Debt
      • Private Equity
      • Valuation
      • Venture Capital
    • Markets
      • Economics
      • Equity Markets and Derivatives
      • Fixed Income and Derivatives
      • Introduction to Markets
      • Options and Structured Products
      • Other Capital Markets
      • Securities Services
    • Microsoft Office
      • Excel
      • PowerPoint
      • Word & Outlook
    • Professional Skills
      • Career Development
      • Expert Interviews
      • Interview Skills
    • Risk Management
    • Transaction Banking
    • Felix Live
  • Pathways
    • Investment Banking
    • Asset Management
    • Equity Research
    • Sales and Trading
    • Commercial Banking
    • Engineering
    • Operations
    • Private Equity
    • Credit Analysis
    • Restructuring
    • Venture Capital
    • CFA Institute
  • Certified Courses
  • Ask An Instructor
  • Support
  • Log in
  • Topics
    • My List
    • Felix Guide
    • Asset Management
    • Coding and Data Analysis
      • Data Analysis and Visualization
      • Financial Data Tools
      • Python
      • SQL
    • Credit
      • Credit Analysis
      • Restructuring
    • Financial Literacy Essentials
      • Financial Data Tools
      • Financial Math
      • Foundations of Accounting
    • Industry Specific
      • Banks
      • Chemicals
      • Consumer
      • ESG
      • Insurance
      • Oil and Gas
      • Pharmaceuticals
      • Project Finance
      • Real Estate
      • Renewable Energy
      • Technology
      • Telecoms
    • Introductory Courses
    • Investment Banking
      • Accounting
      • Financial Modeling
      • M&A and Divestitures
      • Private Debt
      • Private Equity
      • Valuation
      • Venture Capital
    • Markets
      • Economics
      • Equity Markets and Derivatives
      • Fixed Income and Derivatives
      • Introduction to Markets
      • Options and Structured Products
      • Other Capital Markets
      • Securities Services
    • Microsoft Office
      • Excel
      • PowerPoint
      • Word & Outlook
    • Professional Skills
      • Career Development
      • Expert Interviews
      • Interview Skills
    • Risk Management
    • Transaction Banking
    • Felix Live
  • Pathways
    • Investment Banking
    • Asset Management
    • Equity Research
    • Sales and Trading
    • Commercial Banking
    • Engineering
    • Operations
    • Private Equity
    • Credit Analysis
    • Restructuring
    • Venture Capital
    • CFA Institute
  • Certified Courses
Felix
  • Data
    • Company Analytics
    • My Filing Annotations
    • Market & Industry Data
    • United States
    • Relative Valuation
    • Discount Rate
    • Building Forecasts
    • Capital Structure Analysis
    • Europe
    • Relative Valuation
    • Discount Rate
    • Building Forecasts
    • Capital Structure Analysis
  • Models
  • Account
    • Edit my profile
    • My List
    • Restart Homepage Tour
    • Restart Company Analytics Tour
    • Restart Filings Tour
  • Log in
  • Ask An Instructor
    • Email Our Experts
    • Felix User Guide
    • Contact Support

Python Objects

Learn the basics of coding in Python. Starting with calculations, text, dynamic outputs, and variables in code.

Unlock Your Certificate   
 
0% Complete

20 Lessons (54m)

Show lesson playlist
  • Description & Objectives

  • 1. Python Objects Learning Objectives

    00:22
  • 2. Python Object Types

    03:42
  • 3. Object Type Workout

    00:51
  • 4. Lists

    04:05
  • 5. Accessing List Objects

    04:19
  • 6. Lists Workout

    05:04
  • 7. Changing List Objects

    02:54
  • 8. More List Functions

    02:05
  • 9. List Functions Workout

    03:01
  • 10. Tuples

    02:13
  • 11. Sets

    01:58
  • 12. Using Sets to Remove Duplicates

    02:09
  • 13. Set Operations

    03:08
  • 14. Sets Workout

    03:01
  • 15. Dictionaries

    03:02
  • 16. Accessing Dictionary Items

    01:43
  • 17. Dictionary Workout

    04:32
  • 18. Dictionary Functions

    03:14
  • 19. Dictionary Functions Workout

    01:55
  • 20. Python Objects Review

    01:00

Prev: Intro to Python Next: Custom Functions, For Loops, Conditional Logic

Lists Workout

  • Notes
  • Questions
  • Transcript
  • 05:04

Practise using list functions in Python.

Downloads

No associated resources to download.

Glossary

list list function Python
Back to top
Financial Edge Training

© Financial Edge Training 2025

Topics
Introduction to Finance Accounting Financial Modeling Valuation M&A and Divestitures Private Equity
Venture Capital Project Finance Credit Analysis Transaction Banking Restructuring Capital Markets
Asset Management Risk Management Economics Data Science and System
Request New Content
System Account User Guide Privacy Policy Terms & Conditions Log in
Transcript

Let's practice all of that new knowledge about lists. In your Jupyter Notebook file, complete the following actions. You're going to create a list called List one containing the integers, 1, 2, 3, 4, and 5. Then you're going to create another list called list two containing the integer, 6, 7, 8, 9, and 10. Then I want you to print the sum of the fourth object in the first list and the first object in the second list. Then print the last two objects as a range from list one and the first three objects as a range in list two. Finally, you're going to create a new list called list three, and it's gonna contain the objects from step four in numerical order. And then you're gonna print the result. So that list three is going to be the last two objects of list one. It's gonna be the first three objects of list two, those five integer combine together and then print the result.

If you did this all in one cell, that's totally fine. I'm going to break it out into multiple cells by adding some of my own so that you can see step by step how everything is working. I'm gonna start by creating list one containing the integers 1 through 5, and that's gonna be contained in square brackets to tell Python that we're creating a list.

Then I'm gonna create list two containing 6 through 10 for a quick check, just for fun, I'm gonna print those lists just to make sure that they were defined correctly And it looks like they're working fine.

I'm gonna add a new cell right below that and now we are going to add the fourth object in list one with the first object in list two. So that's the number 4 from list one and the number 6 from list two. Now remember, python lists are zero indexed, so the number 4, which is in the fourth position of list one is going to be index three, and the number 6, which is the first object in list two, is gonna be index zero. So let's go ahead and add those together. List one in square brackets index three, which will gimme the number four plus list two in square brackets index zero. The number 6. Looks good.

Next, I'm going to print the last two numbers in list one as a range, and the first three in list two as a range.

So I'm gonna call list one, and then in square brackets the index of my first number in my range, so index three, and then a colon will tell Python that I'm calling a range, and since my range ends with the final object in the list, I can just leave that index blank and it will know to include the five.

Next, I'm gonna print list two, and then my starting object is the number 6. So that's my first object in my list, so I can leave that index blank. I'm gonna put a a colon to tell Python it's a range and it automatically knows that blank spot is the first object in the list. And then just the way that Python syntax works is that the second index is the first number that you want to exclude. So here we want to include 6, 7, and 8, and then we want to exclude 9. The index for 9 is three.

So that's saying that blank space is saying start with the first object in the list. The colon is giving me a range and exclude index three, the number 9.

So that gives us 4 and 5 and oh, it looks like I used list one. If we change that to list two, I'm gonna get 6, 7, and 8.

Finally, I'm gonna create a new list called list three, and I'm gonna make that equal to those two ranges that we just printed out, concatenated together or combined together. So list one, and I'm gonna type that range. So index three to the end, and then list two open square brackets. And I'm gonna start with my first object, so I don't need an index and then a colon. And then the first object I want to exclude.

And now lastly, I'm just gonna print that list.

There you go.

Content Requests and Questions

You are trying to access premium learning content.

Discover our full catalogue and purchase a course Access all courses with our premium plans or log in to your account
Help

You need an account to contact support.

Create a free account or log in to an existing one

Sorry, you don't have access to that yet!

You are trying to access premium learning content.

Discover our full catalogue and purchase a course Access all courses with our premium plans or log in to your account

You have reached the limit of annotations (10) under our premium subscription. Upgrade to unlock unlimited annotations.

Find out more about our premium plan

You are trying to access content that requires a free account. Sign up or login in seconds!

Create a free account or log in to an existing one

You are trying to access content that requires a premium plan.

Find out more about our premium plan or log in to your account

Only US listed companies are available under our Free and Boost plans. Upgrade to Pro to access over 7,000 global companies across the US, UK, Canada, France, Italy, Germany, Hong Kong and more.

Find out more about our premium plan or log in to your account

A pro account is required for the Excel Add In

Find out more about our premium plan

Congratulations on completing

This field is hidden when viewing the form
Name(Required)
This field is hidden when viewing the form
Rate this course out of 5, where 5 is excellent and 1 is terrible.
Were the stated learning objectives met?(Required)
Were the stated prerequisite requirements appropriate and sufficient?(Required)
Were the program materials, including the qualified assessment, relevant and did they contribute to the achievement of the learning objectives?(Required)
Was the time allotted to the learning activity appropriate?(Required)
Are you happy for us to use your feedback and details in future marketing?(Required)

Thank you for already submitting feedback for this course.

CPE

What is CPE?

CPE stands for Continuing Professional Education, by completing learning activities you earn CPE credits to retain your professional credentials. CPE is required for Certified Public Accountants (CPAs). Financial Edge Training is registered with the National Association of State Boards of Accountancy (NASBA) as a sponsor of continuing professional education on the National Registry of CPE Sponsors.

What are CPE credits?

For self study programs, 1 CPE credit is awarded for every 50 minutes of elearning content, this includes videos, workouts, tryouts, and exams.

CPE Exams

You must complete the CPE exam within 1 year of accessing a related playlist or course to earn CPE credits. To see how long you have left to complete a CPE exam, hover over the locked CPE credits button.

What if I'm not collecting CPE credits?

CPE exams do not count towards your FE certification. You do not need to complete the CPE exam if you are not collecting CPE credits, but you might find it useful for your own revision.


Further Help
  • Felix How to Guide walks you through the key functions and tools of the learning platform.
  • Playlists & Tryouts: Playlists are a collection of videos that teach you a specific skill and are tested with a tryout at the end. A tryout is a quiz that tests your knowledge and understanding of what you have just learned.
  • Exam: If you are collecting CPE points you must pass the relevant CPE exam within 1 year to receive credits.
  • Glossary: A glossary can be found below each video and provides definitions and explanations for terms and concepts. They are organized alphabetically to make it easy for you to find the term you need.
  • Search function: Use the Felix search function on the homepage to find content related to what you want to learn. Find related video content, lessons, and questions people have asked on the topic.
  • Closed Captions & Transcript: Closed captions and transcripts are available on videos. The video transcript can be found next to the closed captions in the video player. The transcript feature allows you to read the transcript of the video and search for key terms within the transcript.
  • Questions: If you have questions about the course content, you will find a section called Ask a Question underneath each video where you can submit questions to our expert instructor team.