---
# System prepended metadata

title: '3.Wednesday, 17-07-2019, Python basic'

---

# 3.Wednesday, 17-07-2019, Python basic
### Practice Python
* String
>We cannot modify content in a string. We have to split it into a list, then modify. Finally,  use join function to link the elements in this list to a string.
```
s = input()
l = []
for i in range(len(s)):
  if i%3 != 0:
    l.append(s[i])
  else:
    l.append('')
result = ''.join(l)
print(result)
```

* Print

>There are 2 parameters in PRINT function have to be kept in mind
>sep: separate to new line. Ex: sep='\n'
>end: end of an element. Ex: end=' '
>

* Loop
    * For

    * While