\definecolor{listing}{HTML}{ffffff}
\definecolor{listingframe}{HTML}{092a67}
\definecolor{listingtext}{HTML}{000000}
\definecolor{numberline}{HTML}{024658}
\definecolor{keywords}{HTML}{106f88}
\definecolor{comment}{HTML}{c0c0c0}

\newtcblisting{console}{%
	colback = black,
	colupper = white,
	colframe = black,
	breakable,
	arc = 0pt,
	outer arc = 0pt,
	listing only,
	listing options = {
		style = tcblatex,
		language = sh
	}
}

\newcounter{c@pythonlisting}
\stepcounter{c@pythonlisting}

\newtcblisting{python}{%
	before = {\vskip1ex\stepcounter{c@pythonlisting}},
	title = {Code Python \thechapter-\thec@pythonlisting},fonttitle=\ttfamily\bfseries,
	externalize listing = {\thechapter-\thec@pythonlisting},
	enhanced,
	breakable,
	arc = 0pt,
	boxrule=0.7pt,
	outer arc = 0pt,
	colback = listing,
	colupper = listingtext,
	colframe = listingframe,
	left = 6mm,
	listing only,
	listing options = {
		style = tcblatex,
		numbers = left,
		numberstyle = \small\color{numberline},
		language = python
	},
	drop fuzzy shadow
}


\newtcblisting{python*}{%
	enhanced,%
	breakable,
	boxrule=0.7pt,
	arc = 0pt,
	outer arc = 0pt,
	colback = listing,
	colupper = listingtext,
	colframe = listingframe,
	left = 2mm,
	listing only,
	listing options = {
		style = tcblatex,
		language = python
	},
	drop fuzzy shadow
}

\lstset{%
	commentstyle = \color{comment},
	keywordstyle = \color{keywords},
	tabsize = 3,
	showstringspaces=false
}