🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Ali Colak
    Ali Colak
    2,192 Points

    Practice Creating and Using Functions in Python

    Posted January 15, 2023 12:30pm by Ali Colak
    Ali Colak
    2,192 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    2 Answers

  • Linda Larson-Prior
    Linda Larson-Prior
    446 Points

    my cod ran, ON THE NUMBER 1, in my IDE - why won't it work here? I attach the function as called in PyCharm

    Posted July 6, 2022 4:49pm by Linda Larson-Prior
    Linda Larson-Prior
    446 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    2 Answers

  • Grayden Kellogg
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Grayden Kellogg
    Python Development Techdegree Student 1,826 Points

    I'm confused as to why my code doesn't work [Solved]

    Posted December 17, 2021 10:49pm by Grayden Kellogg
    .a{fill-rule:evenodd;}techdegree
    Grayden Kellogg
    Python Development Techdegree Student 1,826 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • jack twist
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    jack twist
    Full Stack JavaScript Techdegree Student 18,575 Points

    I don't understand why it's saying is_odd(2) returns True, why my code doesn't work?

    Posted July 12, 2021 12:55pm by jack twist
    .a{fill-rule:evenodd;}techdegree
    jack twist
    Full Stack JavaScript Techdegree Student 18,575 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Hend Elshaarawi
    Hend Elshaarawi
    434 Points

    Answer odd number

    Posted October 7, 2020 4:12pm by Hend Elshaarawi
    Hend Elshaarawi
    434 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    2 Answers

  • Jenn Giulietti
    Jenn Giulietti
    4,888 Points

    stuck on the function practice to show a number is odd

    Posted September 21, 2020 7:44pm by Jenn Giulietti
    Jenn Giulietti
    4,888 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • David Sanchez
    David Sanchez
    623 Points

    Using Functions in Python

    Posted July 20, 2020 7:44pm by David Sanchez
    David Sanchez
    623 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Nataliya Fateeva
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Nataliya Fateeva
    Python Development Techdegree Student 4,858 Points

    PyCharm interpreter returns correct value for 1 but Challenge test does not:/

    Posted June 22, 2020 7:49pm by Nataliya Fateeva
    .a{fill-rule:evenodd;}techdegree
    Nataliya Fateeva
    Python Development Techdegree Student 4,858 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Stephen Williams
    Stephen Williams
    3,372 Points

    I'm not sure what I' am doing wrong.. Any solutions?

    Posted June 4, 2020 6:49pm by Stephen Williams
    Stephen Williams
    3,372 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Shavez Memon
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Shavez Memon
    Python Development Techdegree Student 2,452 Points

    Why am I getting an error?

    Posted May 27, 2020 2:27pm by Shavez Memon
    .a{fill-rule:evenodd;}techdegree
    Shavez Memon
    Python Development Techdegree Student 2,452 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • johnahodge
    johnahodge
    6,639 Points

    Practice Creating and Using Functions in Python

    Posted May 25, 2020 2:33pm by johnahodge
    johnahodge
    6,639 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    2 Answers

  • Charles Magee
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Charles Magee
    Python Development Techdegree Student 657 Points

    Hi,I tried looking for help online but Im yet to come across any websites the can help me more understand this function

    Posted May 23, 2020 5:09pm by Charles Magee
    .a{fill-rule:evenodd;}techdegree
    Charles Magee
    Python Development Techdegree Student 657 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Shavez Memon
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Shavez Memon
    Python Development Techdegree Student 2,452 Points

    Why is there an error?

    Posted May 23, 2020 4:50pm by Shavez Memon
    .a{fill-rule:evenodd;}techdegree
    Shavez Memon
    Python Development Techdegree Student 2,452 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • da5
    da5
    4,656 Points

    Works in workspace...

    Posted May 23, 2020 4:08pm by da5
    da5
    4,656 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • William Wagar
    William Wagar
    1,436 Points

    2 keeps coming back as true...

    Posted May 4, 2020 11:55pm by William Wagar
    William Wagar
    1,436 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    0 Answers

  • Christopher Buckhout
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Christopher Buckhout
    Python Development Techdegree Student 786 Points

    is_odd Code Challenge

    Posted May 4, 2020 12:19pm by Christopher Buckhout
    .a{fill-rule:evenodd;}techdegree
    Christopher Buckhout
    Python Development Techdegree Student 786 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    2 Answers

  • clarence leung
    clarence leung
    3,846 Points

    is_odd

    Posted April 20, 2020 3:07pm by clarence leung
    clarence leung
    3,846 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Saranya Das
    PLUS
    Saranya Das
    Courses Plus Student 284 Points

    is_odd

    Posted April 6, 2020 9:11pm by Saranya Das
    Saranya Das
    Courses Plus Student 284 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Matt Fuller
    Matt Fuller
    8,831 Points

    Practice Creating and Using Functions in Python - task two

    Posted November 8, 2019 2:43pm by Matt Fuller
    Matt Fuller
    8,831 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    2 Answers

  • Justin Townsend
    Justin Townsend
    4,720 Points

    Function python

    Posted November 7, 2019 3:51pm by Justin Townsend
    Justin Townsend
    4,720 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Hidir Bolaji
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hidir Bolaji
    Python Development Techdegree Student 2,161 Points

    What is wrong with this code?

    Posted September 18, 2019 10:12am by Hidir Bolaji
    .a{fill-rule:evenodd;}techdegree
    Hidir Bolaji
    Python Development Techdegree Student 2,161 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Botshelo Tsogo Tiroyamodimo
    Botshelo Tsogo Tiroyamodimo
    3,057 Points

    Creating a function that shows if a number is odd

    Posted August 30, 2019 10:25pm by Botshelo Tsogo Tiroyamodimo
    Botshelo Tsogo Tiroyamodimo
    3,057 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Tichaona KUNDODYIWA
    Tichaona KUNDODYIWA
    5,124 Points

    Let's create a function that determines if a specific value is odd. Let's name the function is_odd and have it declare

    Posted July 22, 2019 12:41pm by Tichaona KUNDODYIWA
    Tichaona KUNDODYIWA
    5,124 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Kurobe Kuro^T_T^
    Kurobe Kuro^T_T^
    5,369 Points

    what shoul i put in between the () it doesent say what to add

    Posted July 20, 2019 7:43pm by Kurobe Kuro^T_T^
    Kurobe Kuro^T_T^
    5,369 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    2 Answers

  • aditya verma
    aditya verma
    1,853 Points

    is_odd(1) correctly returns False

    Posted June 20, 2019 9:14pm by aditya verma
    aditya verma
    1,853 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • minasalehi
    minasalehi
    1,282 Points

    my code is running correctly in workspace but i keep getting errors on practice forum

    Posted June 14, 2019 7:48pm by minasalehi
    minasalehi
    1,282 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Justin Armstrong
    Justin Armstrong
    3,702 Points

    Python function

    Posted May 23, 2019 8:34am by Justin Armstrong
    Justin Armstrong
    3,702 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    2 Answers

  • Aimane Chouhaibi
    Aimane Chouhaibi
    190 Points

    odd num

    Posted May 12, 2019 3:18pm by Aimane Chouhaibi
    Aimane Chouhaibi
    190 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Rafael Maida
    Rafael Maida
    2,307 Points

    odd numbers

    Posted April 23, 2019 7:19pm by Rafael Maida
    Rafael Maida
    2,307 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

  • Gregory James
    Gregory James
    6,537 Points

    Divisible by 2?

    Posted December 19, 2018 9:21pm by Gregory James
    Gregory James
    6,537 Points
    • Python
    • Practice Creating and Using Functions in Python
    • Practice Functions
    • That's Odd

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.