Skip to content

Commit d30efd3

Browse files
authored
Create 1-2VariableSplitting.md
1 parent fc82241 commit d30efd3

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

Tutorials/1-2VariableSplitting.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# VariableSplitting
2+
3+
Write a string (This can be any combination of letters).
4+
5+
```python
6+
var
7+
```
8+
9+
Then add a space and an equal sign.
10+
11+
```python
12+
var =
13+
```
14+
15+
If you want an integer, add a space and put a number.
16+
17+
```python
18+
var = 123456789
19+
```
20+
If you want the integer go up by a number, add a plus before the equals.
21+
```python
22+
Hello += 1
23+
```
24+
If you want a string, put the string in between a pair of quotation marks.
25+
26+
```python
27+
Hello = "Variable"
28+
```
29+
30+
Next, put brackets
31+
32+
```python
33+
Hello[]
34+
```
35+
36+
Put a number inside the brackets
37+
38+
```python
39+
Hello[2]
40+
```
41+
42+
## Examples
43+
44+
### Example 1:
45+
```python
46+
Hello[2]
47+
```

0 commit comments

Comments
 (0)