mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
Added syntax highlighting
This commit is contained in:
1 parent
bf78e3be37
commit
d62e94b78a
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user