Hey @desert tiger!
Please edit your message to use a code block
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
9 messages ยท Page 1 of 1 (latest)
Hey @desert tiger!
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
@desert tiger
Remember to:
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
!f-string as a quick heads up
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
anyways, for this, just wrap that in a function and call that 10 times to fill up a list, then take the average of the list
you could even use random.choices or random.sample
how though
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.