DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
hex to rgb python
h
=
input
(
'Enter hex: '
)
.
lstrip
(
'#'
)
print
(
'RGB ='
,
tuple
(
int
(
h
[
i
:
i
+
2
]
,
16
)
for
i
in
(
0
,
2
,
4
)
)
)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#hex
#rgb
#python
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit