Skip to content

Commit c87fe89

Browse files
authored
Remove string-format and add some spaces for linting
1 parent 55ace77 commit c87fe89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_episodes/01-introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ In the previous code block, we introduced the `print()` function. Often, we wil
9393
Note that if you do not specify a new name for a variable, then it doesn't automatically change the value of the variable; this is called being *immutable*. For example if we typed
9494
```
9595
print(deltaG)
96-
deltaG*1000
96+
deltaG * 1000
9797
print(deltaG)
9898
```
9999
{: .language-python}
@@ -119,7 +119,7 @@ print(deltaG)
119119
There are situations where it is reasonable to overwrite a variable with a new value, but you should always think carefully about this. Usually it is a better practice to give the variable a new name and leave the existing variable as is.
120120
```
121121
print(deltaG)
122-
deltaG_joules = deltaG*1000
122+
deltaG_joules = deltaG * 1000
123123
print(deltaG)
124124
print(deltaG_joules)
125125
```
@@ -176,7 +176,7 @@ energy_kcal = [-13.4, -2.7, 5.4, 42.1]
176176
energy_length = len(energy_kcal)
177177
178178
# print the list length
179-
print('The length of this list is {}'.format(energy_length))
179+
print('The length of this list is', energy_length)
180180
```
181181
{: .language-python}
182182

0 commit comments

Comments
 (0)