|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Using a Hex() Like Function in Python
I was wondering if anyone could show me something in Python that functions as Hex() does in Visual Basic. Thanks.
|
|
#2
|
||||
|
||||
|
Code:
x = hex(42) print x print hex(69)
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
|
#3
|
||||
|
||||
|
Lol, thanks. I didn't realize that Python had hex() the same way as in VB6.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Using a Hex() Like Function in Python |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|