From d62e94b78a8bcd98ae390a950c012019ec92f362 Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Thu, 18 Feb 2021 11:25:39 +0800 Subject: [PATCH] Added syntax highlighting --- python.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python.md b/python.md index 669fd5f..4842a79 100644 --- a/python.md +++ b/python.md @@ -301,7 +301,7 @@ Loop through the letters in the word "banana" --- -``` +```python >>> s = 'mybacon' >>> s[2:5] 'bac' @@ -412,7 +412,7 @@ txt3 = "My name is {}, I'm {}".format("John",36) ``` ### Input -``` +```python >>> name = input("Enter your name: ") Enter your name: Tom >>> name