Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (Retired) Things That Count Basic Numbers

whats the difference between ordering python to print an integer and just typing the integer.

when one can just type a number into python. why then does it have to be like i order python to print a number. for example, when you want to make 2 a decimal, you can just type in 2.0. so whats the purpose of using such functions when you can just type it in. not like i want to create my own "python" but just want to know. everyone does with an extra dollar

2 Answers

Ryan Ruscett
Ryan Ruscett
23,309 Points

I am not sure I understand what you are asking?

Indranil Tiwary
Indranil Tiwary
9,341 Points

We order python to print integer or floats because here we are trying to learn the syntax. In bigger program problems you would frequently require the conversion for different purposes.