Linux Lite 7.6 Final Released - Click here for more


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
int(3) and int('3') is there a difference? (python3.5)
#1
So I'm reading a python3 book and working with int(). I follow the directions everything is fine. They have me typing in the shell int('2') and see the result. I noticed if I type int(2) with no apostrophe i get the same result. So my question is this, is there a difference?
Reply


Messages In This Thread
int(3) and int('3') is there a difference? (python3.5) - by teage - 02-06-2019, 01:50 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)