Real Python
  • Start Here
  • Learn Python
    Python Tutorials →
    In-depth articles and video courses
    Learning Paths →
    Guided study plans for accelerated learning
    Quizzes & Exercises →
    Check your learning progress
    Browse Topics →
    Focus on a specific area or skill level
    Community Chat →
    Learn with other Pythonistas
    Office Hours →
    Live Q&A calls with Python experts
    Live Courses →
    Live, instructor-led Python courses
    Podcast →
    Hear what\u2019s new in the world of Python
    Books →
    Round out your knowledge and learn offline
    Reference →
    Concise definitions for common Python terms
    Code Mentor →Beta
    Personalized code assistance & learning tools
    Unlock All Content →
  • More
    Learner Stories Python Newsletter Python Job Board Meet the Team Become a Contributor
  • Search
/
  • Join
  • Sign‑In

Exercise: Crunch Some Numbers

Darren Jones
Exploring Basic Data Types in Python Darren Jones
Recommended Tutorial Course Slides (.pdf) Ask a Question
  • Discussion

Become a Member to join the conversation.

Course Contents

Overview
61%
    Basic Data Types in Python: Overview 00:21
    Integers 05:38
    Exercise: Convert a Number to Different Bases
    Floats 05:33
    Exercise: Compare Division and Floor Division
    Complex Numbers 01:35
    Strings 02:48
    Escape Sequences 04:45
    Exercise: Build a Formatted Receipt
    Raw Strings 01:28
    Triple Quoted Strings 03:06
    Booleans 03:55
    Exercise: Check Truthiness of Values
    Functions: Composite Data Types 08:36
    Functions: Math 04:50
    Exercise: Crunch Some Numbers
    Functions: Type Conversion 06:54
    Functions: Iterables and Iterators 11:45
    Exercise: Meet the Pets
    Functions: Input and Output 05:09
    Functions: Variables, References, and Scope (Part 1) 03:39
    Functions: Variables, References, and Scope (Part 2) 05:58
    Exercise: Write a Temperature Converter
    Functions: Miscellaneous 10:57
    Basic Data Types in Python (Quiz) 08:00
    Basic Data Types in Python: Summary 00:59

© 2012–2026 Real Python ⋅ Privacy Policy