+ 1
If I want fill the hexadecimal value in the program then how I can put it?
4 Respostas
+ 8
I see you're taking the Python course here, so here's an example:
bin = 0b100000000 # Binary, prefix zero+letter b
oct = 0o400 # Octal, prefix zero+letter o
hex = 0x100 # Hexadecimal, prefix zero+letter x
print(f"Binary: {bin}\nOctal: {oct}\nHexadecimal: {hex}")
Hth, cmiiw
+ 6
akshay randive this way
var x = color('#000000') --> Black
Please put the necessary tags to make the question complete.
+ 5
Which language are you using?
Basically it's;
Var = input
Hex = (string "#"), input
+ 2
Thanks