Consider a program that accepts a word as input from the user and prints the number of punctuation marks in it. You can assume that the input will be given in lower case.
Here we are considering only the given punctuation marks: `,`, `.`, `:`, `;`.
Which of these two snippets is correct?
Snippet-1:
```
word = input()
count = 0
punctuation_marks = [',', '.', ':', ';']
for char in word:
if char in punctuation_marks:
count += 1
print(count)
```
Snippet-2:
```
word = input()
count = 0
for char in word:
if char in ',.:;':
count += 1
print(count)
```