%!TEX pdflatex

\documentclass{article}
\usepackage{amsmath}
\usepackage{tcolorbox}
\usepackage{fontawesome5}
\usepackage{lipsum}
\tcbuselibrary{skins}

\newtcolorbox{tcboxA}{%
	enhanced,boxrule=0.25mm,arc=0mm,boxsep=1mm,top=1mm,bottom=1mm,left=1.5mm,right=2.5mm,%
	colframe=red!50!white,leftrule=8mm,coltext=black,%
	overlay={%
		\node[tcbcolframe!25!black] at ([xshift=4mm]frame.west) {\resizebox*{5mm}{!}{\faPython}}; 
	}
}

\newtcolorbox{tcboxB}{
	enhanced,boxrule=0.25mm,
	boxsep=1mm,top=1mm,bottom=1mm,left=2.5mm,right=2.5mm,
	colframe=cyan!50!blue,
	coltitle=white,
	attach boxed title to top left={yshift*=-\tcboxedtitleheight}, 
	title=\textsf{\bfseries Question.},
	boxed title size=title,
	boxed title style={%
		rounded corners=northeast, 
		rounded corners=northwest, 
		colback=tcbcolframe, 
		boxrule=0pt,
	},
	underlay boxed title={%
		\path[fill=tcbcolframe] (title.south west)--(title.south east) 
		to[out=0, in=180] ([xshift=5mm]title.east)--
		(title.center-|frame.east)
		[rounded corners=5pt] |- 
		(frame.north) -| cycle; 
	},
}
\begin{document}

\begin{tcboxA}
\lipsum[1][1-3]
\end{tcboxA}

\begin{tcboxB}
\lipsum[1][4-6]
\end{tcboxB}

\end{document}