From 97cc47ee334b81331d6bf1ef094ad9a88f78cd8d Mon Sep 17 00:00:00 2001
From: Prabhu Ramachandran
Date: Wed, 22 Nov 2017 17:26:04 +0530
Subject: Add more useful exercises.

Move \py macro to macros.tex.
---
 advanced_python/macros.tex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'advanced_python/macros.tex')

diff --git a/advanced_python/macros.tex b/advanced_python/macros.tex
index 0dfe38b..b5d16e3 100644
--- a/advanced_python/macros.tex
+++ b/advanced_python/macros.tex
@@ -41,9 +41,10 @@
 
 \newcommand{\typ}[1]{\textbf{\texttt{{#1}}}}
 
-
 \newcommand{\kwrd}[1]{ \texttt{\textbf{\color{blue}{#1}}}  }
 
+\newcommand{\py}[1]{\lstinline{#1}}
+
 %%% This is from Fernando's setup.
 % \usepackage{color}
 % \definecolor{orange}{cmyk}{0,0.4,0.8,0.2}
-- 
cgit 

