http://docs.python.org/library/functions.html#int
Python’s int
function creates base 10 numbers, and lets you supply the base of the variable you are feeding.
x = int('FF', 16)
is the same as x = 255
More Related Contents:
- I need help subtracting variables from one another, both being numbers
- Sub-process in Python execute two task? [closed]
- Apply vs transform on a group object
- Python -Intersection of multiple lists?
- How can I find all the subsets of a set, with exactly n elements?
- How to change the color of certain words in the tkinter text widget?
- super() raises “TypeError: must be type, not classobj” for new-style class
- Reading a text file and splitting it into single words in python
- No module named ‘polls.apps.PollsConfigdjango’; Django project tutorial 2
- Sqlite insert query not working with python?
- SyntaxError inconsistency in Python?
- What is the right way to treat Python argparse.Namespace() as a dictionary?
- Split string using a newline delimiter with Python [duplicate]
- How does sklearn.svm.svc’s function predict_proba() work internally?
- Django : Table doesn’t exist
- Fetch all href link using selenium in python
- double equals vs is in python [duplicate]
- Set up Python simpleHTTPserver on Windows [duplicate]
- What do square brackets mean in pip install?
- Running ansible-playbook using Python API
- How to run bash commands inside of a Python script [duplicate]
- urllib2 file name
- Wait until task is completed on Remote Machine through Python [duplicate]
- Python: Number of the Week in a Month
- redirect prints to log file
- Which is the most efficient way to iterate through a list in python?
- How does Python implement the modulo operation?
- Scrapy CrawlSpider doesn’t crawl the first landing page
- SSLError: sslv3 alert handshake failure
- How to encrypt text with a password in python?