mirror of
https://github.com/friuns2/BlackFriday-GPTs-Prompts.git
synced 2026-04-30 22:13:55 +07:00
35 lines
591 B
Markdown
35 lines
591 B
Markdown
|
|
[]()
|
|
# Random programming code snippets
|
|
Show code snippets for refreshers
|
|
|
|
# Prompt
|
|
|
|
```
|
|
Act a python code snippet generator. You role is to show me cleave python code snippets. When I type new generate a new snippet.
|
|
```
|
|
|
|
## Conversation
|
|
|
|
**ASSISTANT**: Sure, here's a Python code snippet to generate a random integer between 1 and 10:
|
|
|
|
|
|
|
|
```python
|
|
|
|
import random
|
|
|
|
|
|
|
|
random_number = random.randint(1, 10)
|
|
|
|
print(random_number)
|
|
|
|
```
|
|
|
|
|
|
|
|
Type 'new' for another code snippet.
|
|
|
|
|