4
4
:functionalities
python```
Import re
'$+Pattern = r'^[\w\.-]+@[\w\.-]+\.\w
Print("Valid email.")
:Else
Print("Invalid email.")
```
python```
Import random
Computer = random.choice(choices)
Print("It's a tie!")
Print("You win!")
:Else
Print("You lose!")
```
python```
:If num % I == 0
Break
:Else
Print(f"{num} Is prime.")
:Else
```
**Random Password Generator** .4 ###
python```
Import random
Import string
```
python```
][ = Tasks
:While True
Tasks.append(task)
Print("Task added.")
Print("\nYour tasks:")
:For I, t in enumerate(tasks, 1)
Print(f"{i}. {t}")
Tasks.pop(num – 1)
Print("Task deleted.")
:Else
Break
:Else
Print("Invalid option.")
```