Contoh 1: Menggunakan urutan escape ANSI
cetak (' x1b[38;2;5;86;243m' + 'Programiz' + 'x1b[0m')
Output
Programiz
The working of the above line of code is shown in the figure below.

Let’s understand the escape code x1b[38;2;5;86;243m
.
x1b
calls a function. You can also use