LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
int(3) and int('3') is there a difference? (python3.5)
#4
(02-06-2019, 02:50 AM)teage link Wrote: So its a string that can be added, multiplied, divided etc?

forgive me if my questions seem a bit silly, im just trying to wrap my head around it. :o


In this example yes.
Int can be used to convert a value into a number (an integer), then the calculations can be done on it etc.
The value can be one of any of the types.

What book are you using ?
It may be you are experimenting further than the current chapter covers, and things will be explained in more detail in future chapters.
You might need a faster paced book, or enjoy to make some projects extra to the book so you can experiment.

I am learning Python2, one book I use Python Crash Course by Eric Matthes I learn Python2 and Python3 along side, I am only on Chapter 3 of it, as I have been busy lately so only had time for 1 book to use for learning and that has been the Linux Command Line.
For when I complete my Python2 books, the first Python3 book I have and will use is called "O'Reilly Head First Python".
Reply


Messages In This Thread
Re: int(3) and int('3') is there a difference? (python3.5) - by bitsnpcs - 02-06-2019, 03:22 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)