#sir-lancebot-playground
1 messages · Page 52 of 1
@cobalt scroll got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
How does one call a class who defines the behavior of their instance classes?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 5
What is hash(float('iNf'))?
20s left!
if
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 4
What dunder method is used by the tuple constructor to optimize converting an iterator to a tuple (answer should be enclosed in backticks!)?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 3
Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)
20s left!
NotIMPLEMENTED
10s left!
StopIteration
@cobalt scroll got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 2
What type is the attribute of a frame object that contains the current local variables?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 1
What common operation does this function implement?
def mystery(n: int) -> int:
return (n>>1<<1)^n
20s left!
10s left!
type hintinh
Better luck next time...
Remaining questions: 0
The round has ended.
@cobalt scroll Congratulations on winning this quiz game with a grand total of 150 points :tada:
.quiz matg
- General: Test your general knowledge.
- Retro: Questions related to retro gaming.
- Math: General questions about mathematics ranging from grade 8 to grade 12.
- Science: Put your understanding of science to the test!
- Cs: A large variety of computer science questions.
- Python: Trivia on our amazing language, python!
- Wikipedia: Guess the title of random wikipedia passages.
.quiz math
In probability, the ______ _____ of an experiment or random trial is the set of all possible outcomes of it.
20s left!
universe
10s left!
possibilities
No one answered correctly!
Let's move to the next question.
Remaining questions: 6
No one has made it onto the leaderboard yet.
Find the square root of -36.
20s left!
6
10s left!
6²
No one answered correctly!
Let's move to the next question.
Remaining questions: 5
No one has made it onto the leaderboard yet.
"Hexakosioihexekontahexaphobia" is the fear of which number?
20s left!
10s left!
666
@cobalt scroll got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 4
What is the (0,0) coordinate in a cartesian plane termed as?
20s left!
origin
@cobalt scroll got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 3
What is the natural log of -1 (use i for imaginary number)?
-1i
No one answered correctly!
Let's move to the next question.
Remaining questions: 2
Solve the following system of linear equations (format your answer like this <x> & <y>):
1x + 4y = 11,
5x + 2y = 19
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 1
Which trigonometric function is defined as hypotenuse/opposite?
cos
20s left!
10s left!
Better luck next time...
Remaining questions: 0
The round has ended.
@cobalt scroll Congratulations on winning this quiz game with a grand total of 125 points :tada:
.quiz h
- General: Test your general knowledge.
- Retro: Questions related to retro gaming.
- Math: General questions about mathematics ranging from grade 8 to grade 12.
- Science: Put your understanding of science to the test!
- Cs: A large variety of computer science questions.
- Python: Trivia on our amazing language, python!
- Wikipedia: Guess the title of random wikipedia passages.
.quiz Cs
Which of these languages is the oldest?
(Tcl, Smalltalk 80, Haskell, Standard ML, Java)
20s left!
Standart ML
10s left!
Smalltalk 80
@cobalt scroll got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 6
What is an interpreter capable of interpreting itself called?
meta
20s left!
meta interpreter
@cobalt scroll got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 5
What are the components of digital devices that make up logic gates called?
transistor
@cobalt scroll got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
What is the name of the memory cache that stores recent mappings from virtual memory to physical memory?
ram
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 3
volatile memory
The process of moving unused page tables out of memory is called?
20s left!
10s left!
cache
Better luck next time...
Let's move to the next question.
Remaining questions: 2
Which DNS record contains mail servers of a given domain?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 1
In functional programming, a function with identical return values for identical arguments and no side effects is called?
20s left!
fatorial
10s left!
macros
No one answered correctly!
Remaining questions: 0
The round has ended.
@cobalt scroll Congratulations on winning this quiz game with a grand total of 225 points :tada:
.ddg
(1, 2, 3) - ceweal :3 =type("cereal",(),{})
(2, 6, 8) - ceweal :3 =type("cereal",(),{})
(6, 9, 10) - ceweal :3 =type("cereal",(),{})
(0, 4, 7) - ceweal :3 =type("cereal",(),{})
Flights everyone missed:
(0, 1, 10)
Final scores:
ceweal :3 =type("cereal",(),{}): 3
.quiz
1982
**Hint #1
**It was released before the 90's.
**Hint #2
**It was released after 1980.
1984
@halcyon pond got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 6
What is the best selling game on the Nintendo GameCube?
**Hint #1
**It is not a mainline Mario Game, although the plumber is present.
super smash bros
@halcyon pond got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 5
What was the first game Yoshi appeared in?
**Hint #1
**The game was released in 1990.
@halcyon pond got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 4
What was Mario's original occupation?
ez
**Hint #1
**The occupation was in construction
carpenter
@halcyon pond got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 3
What is Yoshi's (from Mario Bros.) full name?
**Hint #1
**It was revealed in the Nintendo Character Guide in 1993.
**Hint #2
**His last name has to do with eating Mario's enemies.
yoshioor munchakupas
Better luck next time...
Let's move to the next question.
Remaining questions: 2
What did Nintendo make before video games and toys?
**Hint #1
**They were used alternatively to playing cards.
hanafuda playing cards
**Hint #2
**They generally have handdrawn nature images on them.
hanafuda cards
@halcyon pond got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 1
Who was Nintendo's biggest competitor in 1990?
**Hint #1
**Before being Nintendo's main competitor in home gaming, they were successful in arcades.
sega
@halcyon pond got the correct answer :tada: 75 points!
Remaining questions: 0
The round has ended.
@halcyon pond Congratulations on winning this quiz game with a grand total of 400 points :tada:
.quiz C's
- General: Test your general knowledge.
- Retro: Questions related to retro gaming.
- Math: General questions about mathematics ranging from grade 8 to grade 12.
- Science: Put your understanding of science to the test!
- Cs: A large variety of computer science questions.
- Python: Trivia on our amazing language, python!
- Wikipedia: Guess the title of random wikipedia passages.
.quiz python
What function can be used to increase the length limit for string to integer conversion (answer should be enclosed in backticks!)?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 6
No one has made it onto the leaderboard yet.
What is the minimum length limit for converting strs to ints in CPython 3.11+?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 5
No one has made it onto the leaderboard yet.
Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 4
No one has made it onto the leaderboard yet.
How does one call a class who defines the behavior of their instance classes?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 3
No one has made it onto the leaderboard yet.
Which of these characters is valid python outside of string literals in some context?
(@, $, ?)
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 2
No one has made it onto the leaderboard yet.
Who invented Tim Sort?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 1
No one has made it onto the leaderboard yet.
What is a package that doesn't have a __init__ file called?
20s left!
10s left!
Better luck next time...
Remaining questions: 0
No one has made it onto the leaderboard yet.
The round has ended.
.zen
.quiz python
1991
@frigid kite got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 6
Which protocol is used to pass self to methods when accessed on classes?
20s left!
10s left!
super
No one answered correctly!
Let's move to the next question.
Remaining questions: 5
What type does the & operator return when given 2 dict_keys objects?
a
20s left!
Bool
10s left!
True False
Better luck next time...
Let's move to the next question.
Remaining questions: 4
What is the max value of hash(x) if x is an int on 32-bit machines?
20s left!
Ah, no mi rey, ni puta idea
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 3
What is the minimum number of comparison methods a class must implement to support total ordering?
20s left!
no ni perra idea
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 2
What type is the attribute of a frame object that contains the current local variables?
20s left!
10s left!
str
Better luck next time...
Let's move to the next question.
Remaining questions: 1
Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?
20s left!
10s left!
Better luck next time...
Remaining questions: 0
The round has ended.
@frigid kite Congratulations on winning this quiz game with a grand total of 50 points :tada:
.rp asyncio
Here are the top 5 results:
!d locals
locals()```
Update and return a dictionary representing the current local symbol table. Free variables are returned by [`locals()`](https://docs.python.org/3/library/functions.html#locals) when it is called in function blocks, but not in class blocks. Note that at the module level, [`locals()`](https://docs.python.org/3/library/functions.html#locals) and [`globals()`](https://docs.python.org/3/library/functions.html#globals) are the same dictionary.
Note
The contents of this dictionary should not be modified; changes may not affect the values of local and free variables used by the interpreter.
!e
print(0)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0
!e
x = 0
while x != 100:
print(x)
x = x+1
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/JJ6NSOQVY7VQDSUL6FR4R7V25I
so 10 lines is the maximum? lets try that again
!e
x = 0
while x != 100:
print(x, end = " ")
x = x+1
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
!e
x = 0
while x != 101:
print(x, end = " ")
x = x+1
:white_check_mark: Your 3.12 eval job has completed with return code 0.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
.uptime
I started up 4 days ago.
.uptime
I started up 4 days ago.
» args-kwargs
» async-await
» blocking
» botvar
» class
» classmethod
» codeblock
» comparison
» contribute
» customchecks
» customcooldown
» customhelp
» dashmpip
» decorators
Python allows you to set custom attributes to most objects, like your bot! By storing things as attributes of the bot object, you can access them anywhere you access your bot. In the discord.py library, these custom attributes are commonly known as "bot variables" and can be a lifesaver if your bot is divided into many different files. An example on how to use custom attributes on your bot is shown below:
bot = commands.Bot(command_prefix="!")
# Set an attribute on our bot
bot.test = "I am accessible everywhere!"
@bot.command()
async def get(ctx: commands.Context):
"""A command to get the current value of `test`."""
# Send what the test attribute is currently set to
await ctx.send(ctx.bot.test)
@bot.command()
async def setval(ctx: commands.Context, *, new_text: str):
"""A command to set a new value of `test`."""
# Here we change the attribute to what was specified in new_text
bot.test = new_text
This all applies to cogs as well! You can set attributes to self as you wish.
Be sure not to overwrite attributes discord.py uses, like cogs or users. Name your attributes carefully!
.realpython lists
Here are the top 5 results:
Here are the top 5 results:
.realpython class
Here are the top 5 results:
Here are the top 5 results:
.realpython pypy
Here are the top 5 results:
.help trivia
**```
.quiz <category> <questions>
**Can also use:** `trivia`, `triviaquiz`
*Start a quiz!
Questions for the quiz can be selected from the following categories:
- general: Test your general knowledge.
- retro: Questions related to retro gaming.
- math: General questions about mathematics ranging from grade 8 to grade 12.
- science: Put your understanding of science to the test!
- cs: A large variety of computer science questions.
- python: Trivia on our amazing language, Python!
- wikipedia: Guess the title of random wikipedia passages.
(More to come!)*
**Subcommands:**
**`quiz leaderboard`**
*View everyone's score for this bot session.*
**`quiz stop`**
*Stop a quiz game if its running in the channel.*
.wiki children's day vietnam
Children's Day
countries, it is Children's Week and not Children's Day. The Sikhs celebrate Children Day on 20 December to 27 December. Children's Day began on the second
Public holidays in Vietnam
Public holidays in Vietnam are days when workers get the day off work. Prior to 2007, Vietnamese workers observed 8 days of public holiday a year, among
.quiz general
Nile
Pacific
@main scarab got the correct answer :tada: 75 points!
Information
The Pacific Ocean is the largest and deepest of the world ocean basins. Covering approximately 63 million square miles and containing more than half of the free water on Earth, the Pacific is by far the largest of the world's ocean basins.
Let's move to the next question.
Remaining questions: 6
What is the capital of Iraq?
20s left!
Baghdad
@main scarab got the correct answer :tada: 75 points!
Information
Baghdad is the capital of Iraq. It has a population of 7 million people.
Let's move to the next question.
Remaining questions: 5
What is the name of the largest dam in the world?
20s left!
Hoover
10s left!
Gorges Dam
Gorges Dam
Better luck next time...
Information
At 1.4 miles wide (2.3 kilometers) and 630 feet (192 meters) high, Three Gorges Dam is the largest hydroelectric dam in the world, according to International Water Power & Dam Construction magazine. Three Gorges impounds the Yangtze River about 1,000 miles (1,610 km) west of Shanghai.
Let's move to the next question.
Remaining questions: 4
Which is the smallest planet in the Solar System?
Pluto
20s left!
Pluto
Venus
10s left!
@main scarab got the correct answer :tada: 50 points!
Information
Mercury is the smallest planet in our solar system. It's just a little bigger than Earth's moon. It is the closest planet to the sun, but it's actually not the hottest. Venus is hotter.
Let's move to the next question.
Remaining questions: 3
Which country is Mount Etna, one of the most active volcanoes in the world, located?
20s left!
Italy
@main scarab got the correct answer :tada: 75 points!
Information
Mount Etna is the highest volcano in Europe. Towering above the city of Catania on the island of Sicily, it has been growing for about 500,000 years and is in the midst of a series of eruptions that began in 2001.
Let's move to the next question.
Remaining questions: 2
Which is the largest island in the world?
20s left!
Greenland
@main scarab got the correct answer :tada: 75 points!
Information
Commonly thought to be Australia, but as it's actually a continental landmass, it doesn't get to make it in the list.
Let's move to the next question.
Remaining questions: 1
Where is the "International Court Of Justice" located at?
20s left!
10s left!
No one answered correctly!
Remaining questions: 0
The round has ended.
@main scarab Congratulations on winning this quiz game with a grand total of 350 points :tada:
Check out this April Fools' video by google.
We're taking virtual reality to the next level with Haptic Helpers. Using a modest set of everyday tools, these VR virtuosos can simulate more than 10,000 unique experiences, all from the comfort of your own home. Smell the roses. Listen to the ocean. Feel a fluffy dog! Sign up for the beta at vr.google.com/haptichelpers
cube
@wary wave got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
What is the natural log of -1 (use i for imaginary number)?
pii
@wary wave got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
What is the only number in the entire number system which can be spelled with the same number of letters as itself?
4
@wary wave got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
What is the highest power of a biquadratic polynomial?
4
@wary wave got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
Does the harmonic series converge or diverge?
diverge
@wary wave got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
sample standard deviation
@wary wave got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Prime numbers only have __ factors.
question ideas
2
@wary wave got the correct answer :tada: 100 points!
Remaining questions: 0
1
32
The round has ended.
@wary wave Congratulations on winning this quiz game with a grand total of 700 points :tada:
me doesn't know
- General: Test your general knowledge.
- Retro: Questions related to retro gaming.
- Math: General questions about mathematics ranging from grade 8 to grade 12.
- Science: Put your understanding of science to the test!
- Cs: A large variety of computer science questions.
- Python: Trivia on our amazing language, python!
- Wikipedia: Guess the title of random wikipedia passages.
.quiz cs
nand
@weary sand got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
What does one call the optimization technique used in CPU design that attempts to guess the outcome of a conditional operation and prepare for the most likely result?
branching prediction
@weary sand got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
What is the nickname for the textbook 'Compilers: Principles, Techniques, and Tools'?
dragon book
@weary sand got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
Given that January 1, 1970 is the starting epoch of time_t in c time, and that time_t is stored as a signed 32-bit integer, when will unix time roll over (year)?
2038
@weary sand got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
The process of moving unused page tables out of memory is called?
swapping
@weary sand got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Due to what data storage medium did old programming languages, such as cobol, ignore all characters past the 72nd column?
punch cards
@weary sand got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Under what locale does making a string lowercase behave differently?
turkish
@weary sand got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@weary sand Congratulations on winning this quiz game with a grand total of 700 points :tada:
.ddg
(0, 3, 7) - Frieren
(6, 7, 8) - Frieren
(4, 7, 11) - Frieren
(1, 10, 11) - Frieren
(1, 4, 6) - Frieren
Flights everyone missed:
(4, 8, 10)
(0, 8, 9)
Final scores:
Frieren: 4
.quiz python
Which file contains all special site builtins, such as help or credits?
20s left!
10s left!
_builtins
Better luck next time...
Let's move to the next question.
Remaining questions: 6
No one has made it onto the leaderboard yet.
Where does the name Python come from?
20s left!
Flying Circus
10s left!
Monty Python
@wary wave got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 5
What type does the & operator return when given 2 dict_keys objects?
i forgor
No one answered correctly!
Let's move to the next question.
Remaining questions: 4
What is the default length limit for converting strs to ints in CPython 3.11+?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 3
What function can be used to increase the length limit for string to integer conversion (answer should be enclosed in backticks!)?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 2
What is a package that doesn't have a __init__ file called?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 1
Which protocol is used to pass self to methods when accessed on classes?
20s left!
10s left!
Better luck next time...
Remaining questions: 0
oof
The round has ended.
@wary wave Congratulations on winning this quiz game with a grand total of 50 points :tada:
.help quiz
**```
.quiz <category> <questions>
**Can also use:** `trivia`, `triviaquiz`
*Start a quiz!
Questions for the quiz can be selected from the following categories:
- general: Test your general knowledge.
- retro: Questions related to retro gaming.
- math: General questions about mathematics ranging from grade 8 to grade 12.
- science: Put your understanding of science to the test!
- cs: A large variety of computer science questions.
- python: Trivia on our amazing language, Python!
- wikipedia: Guess the title of random wikipedia passages.
(More to come!)*
**Subcommands:**
**`quiz leaderboard`**
*View everyone's score for this bot session.*
**`quiz stop`**
*Stop a quiz game if its running in the channel.*
.quiz science
How does one call the direct phase transition from gas to solid?
20s left!
deposition
@main scarab got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 6
A ____________ reaction is the one wherein an atom or a set of atoms is/are replaced by another atom or a set of atoms
elimination
20s left!
substitution
@main scarab got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 5
What is the universal force discovered by Newton that causes objects with mass to attract each other called?
20s left!
@main scarab got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 4
What do you call an organism composed of only one cell?
20s left!
unicellular
@main scarab got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 3
What is the 6th planet of our Solar System?
saturn
@main scarab got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Who discovered the theories of relativity?
albert Einstein
@main scarab got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
What is the process by which green plants and certain other organisms transform light energy into chemical energy?
photosynthesis
20s left!
10s left!
Better luck next time...
Remaining questions: 0
The round has ended.
@main scarab Congratulations on winning this quiz game with a grand total of 500 points :tada:
What is the natural log of -1 (use i for imaginary number)?
20s left!
10s left!
uhh
Better luck next time...
Let's move to the next question.
Remaining questions: 6
No one has made it onto the leaderboard yet.
What is the only number in the entire number system which can be spelled with the same number of letters as itself?
four
@main scarab got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
BASE TWO QUESTION: Calculate 10000 + 1101
20s left!
101101
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 4
⅓πr^2h is the volume of which 3 dimensional figure?
20s left!
cone
@main scarab got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 3
A matrix multiplied by its inverse matrix equals...
identity matrix
@main scarab got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
0, 1, 1, 2, 3, 5, 8, 13, 21, 34 are numbers of which sequence?
fibonacci
@main scarab got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
"Hexakosioihexekontahexaphobia" is the fear of which number?
20s left!
@main scarab got the correct answer :tada: 75 points!
Remaining questions: 0
The round has ended.
@main scarab Congratulations on winning this quiz game with a grand total of 450 points :tada:
!e
import math
for i in range(int(math.inf)):
print(i)
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | for i in range(int(math.inf)):
004 | ^^^^^^^^^^^^^
005 | OverflowError: cannot convert float infinity to integer
No research has conclusively proven what causes homosexuality, heterosexuality, or bisexuality.
.help
Anagram
.anagram
Given shuffled letters, rearrange them into anagrams.
AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.
AvatarModify
.avatar_modify 8bitify
Pixelates your avatar and changes the palette to an 8bit one.
.avatar_modify
Groups all of the pfp modifying commands to allow a single concurrency limit.
.avatar_modify avatareasterify [colours...]
Easterify the user's avatar.
.avatar_modify mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.avatar_modify prideavatar [option=lgbt] [pixels=64]
Surround an avatar with a border of a specified LGBT flag.
.avatar_modify reverse <text>
Reverses the sent text.
.help prideavatar
**```
.avatar_modify prideavatar [option=lgbt] [pixels=64]
**Can also use:** `avatar_modify avatarpride`, `avatar_modify pridepfp`, `avatar_modify prideprofile`, `avatarpride`, `prideavatar`, `pridepfp`, `prideprofile`
*Surround an avatar with a border of a specified LGBT flag.
Default to the LGBT rainbow flag if none is given.
The amount of pixels can be given which determines the thickness of the flag border.
A maximum of 512px is enforced, defaults to a 64px border.
The full image is 1024x1024.*
**Subcommands:**
**`avatar_modify prideavatar flags`**
*Lists the flags that can be used with the prideavatar command.*
.prideavatar flags
• agender
• androgyne
• aromantic
• asexual
• bigender
• bisexual
• demiboy
• demigirl
• demisexual
• gay
• genderfluid
• genderqueer
• intersex
• lesbian
• nonbinary
• omnisexual
• pangender
• pansexual
• polyamory
• polysexual
• transgender
• trigender
.prideavatar genderfluid
.prideavatar genderfluid
• agender
• androgyne
• aromantic
• asexual
• bigender
• bisexual
• demiboy
• demigirl
• demisexual
• gay
• genderfluid
• genderqueer
• intersex
• lesbian
• nonbinary
• omnisexual
• pangender
• pansexual
• polyamory
• polysexual
• transgender
• trigender
.prideavatar bisexual
@proud ingot @final fern
Understanding "decorators" requires understanding two different concepts:
- Higher order functions, passing functions as arguments to other functions, and returning a function
- The
@syntax
Do you understand the first one?
.uwu
undewstanding "decowatows" wequiwes u-undewstanding two d-diffewent concepts:
- highew owdew functions, p-passing functions a-as awguments t-to othew functions, and wetuwning a function
- t-the
@syntax
do y-you u-undewstand the fiwst onye?
nah bwo
😭
deez too UWU fewwing
Records of same-sex relationships have been found in nearly every culture throughout history with varying degrees of acceptance.
.wa s define
determine the essential quality of
wa
Various slurs targeting queer people have been reappropriated by them, notably "dyke", and "queer".
.prideavatar
.prideavatar
Yes, double gay
double power 😄
.prideavatar
.quiz python
What is the garbage collection strategy used by cpython to collect everything but reference cycles?
20s left!
whaieei
Better luck next time...
Let's move to the next question.
Remaining questions: 6
No one has made it onto the leaderboard yet.
What kind of regex quantifiers were added in Python 3.11?
20s left!
possessive
@abstract willow got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 5
What common operation does this function implement?
def mystery(n: int) -> int:
return (n>>1<<1)^n
round
20s left!
@abstract willow got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 4
Which file contains all special site builtins, such as help or credits?
_sitebuiltins
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
Can you pickle a running list_iterator (y/n)?
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
What type is the attribute of a frame object that contains the current local variables?
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Does numbers.Rational include the builtin object float (y/n)
@abstract willow got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@abstract willow Congratulations on winning this quiz game with a grand total of 550 points :tada:
.quiz python
20s left!
10s left!
2008
@abstract willow got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 6
What attribute of a closure contains the value closed over?
cell_contents
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
Does numbers.Rational include the builtin object float (y/n)
n
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
What exception, other than StopIteration, can you raise from a __getitem__ dunder to indicate to an iterator that it should stop?
IndexError
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
What kind of regex quantifiers were added in Python 3.11?
possessive
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
When was Python first released?
20s left!
1991
@abstract willow got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 1
Which module when imported opens up a web browser tab that points to the classic 353 XKCD comic mentioning Python?
antigravity
@abstract willow got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@abstract willow Congratulations on winning this quiz game with a grand total of 625 points :tada:
.quiz python
1991
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
What type is the attribute of a frame object that contains the current local variables?
dict
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
What file extension is used by the site module to determine what to do at every start?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 4
Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)
Generator
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
How does one call a class who defines the behavior of their instance classes?
metaclass
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
What exception, other than StopIteration, can you raise from a __getitem__ dunder to indicate to an iterator that it should stop?
Indexerror
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Can you pickle a running list_iterator (y/n)?
y
@abstract willow got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@abstract willow Congratulations on winning this quiz game with a grand total of 600 points :tada:
.quiz python 20
What file extension is used by the site module to determine what to do at every start?
.pth
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 19
What is a package that doesn't have a __init__ file called?
namespace package
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 18
How is infinity represented in Python?
float('inf')
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 17
Is everything an instance of the object class (y/n)?
y
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 16
What kind of regex quantifiers were added in Python 3.11?
possessive
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 15
Which file contains all special site builtins, such as help or credits?
_sitebuiltins
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 14
What type is the attribute of a frame object that contains the current local variables?
dict
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 13
What is the minimum length limit for converting strs to ints in CPython 3.11+?
20s left!
0
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 12
ok
Name the only non-dunder method of the builtin slice object.
indices
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 11
What module should be used for extended precision floating point values?
Decimal
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 10
Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?
__doc__
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 9
Which of these is not a generator method?
(next, send, throw, close)
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 8
Can you pickle a running list_iterator (y/n)?
y
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 7
What is pow(0, 0)?
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
How many unique compiled patterns can be stored in the re module's internal caches?
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
What is the garbage collection strategy used by cpython to collect everything but reference cycles?
refcnt
20s left!
@abstract willow got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 4
Is the __aiter__ method async (y/n)?
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
When was Python first released?
1991
@abstract willow got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Where does the name Python come from?
monty python
@abstract willow got the correct answer :tada: 100 points!