The second parameter of int - a little confused


#1

print int("11001001",2)

"When given a string containing a number and the base that number is in, the function will return the value of that number converted to base ten."
this means that "11001001"210 this what is meant by int please explain i been trin' to get this or
the exercise mean "11001001"**2/10 or what just explain it to me
please answer me quick i am like trin' to understand


#2

It doesn't return a number represented in base 10. It returns an int. int is stored as base2, because that's how our computers work. You can print an int, when you do, it is printed in base 10.


#3

@letmeprogramyou1
please read
http://stackoverflow.com/questions/33664451/how-does-intx-base-work


#4

What is it in that link that you want me to read? I'm not seeking any particular information and I don't know which particular information, if any, you think I need.


#5

I got it thanks very very much


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.