#sir-lancebot-playground

1 messages ยท Page 186 of 1

main scarab
#

.spookyavatar @main scarab

wicked parrotBOT
#
MฬตAฬธGฬธMฬธAฬถ_ฬทMฬทAฬดNฬดGฬตOฬถ
Is this you or am I just really paranoid?
main scarab
#

welll

#

.spookyavatar @wicked parrot

wicked parrotBOT
#
Sir Lancebot
Is this you or am I just really paranoid?
main scarab
#

noob

#

.help

wicked parrotBOT
#
Command Help

AdventOfCode
.adventofcode
All of the Advent of Code commands.

AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.

AvatarModify
.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.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.

main scarab
#

.mosaic [squares=16]

wicked parrotBOT
#
Do you mind?

Your input was invalid: Converting to "int" failed for parameter "squares".

Usage:.avatar_modify mosaic [squares=16]

main scarab
#

.avatar mosaic [squares=16]

#

yea

#

.savatar mosaic [squares=16]

wicked parrotBOT
#
I can't believe you've done this

Your input was invalid: Member "mosaic" not found.

Usage:.avatar_modify spookyavatar [member]

main scarab
#

noob

#

.avatar_modify spookyavatar @craggy thistle

wicked parrotBOT
#
Mr. India
Is this you or am I just really paranoid?
tranquil sparrow
#

.eggquiz

wicked parrotBOT
#
Which type of chocolate is the most healthy?

You have 30 seconds to vote.

๐Ÿ‡ฆ -> Dark
๐Ÿ‡ง -> White
๐Ÿ‡จ -> Milk

#

Nobody got it right...

The correct answer was ๐Ÿ‡ฆ!

VOTES:
๐Ÿ‡ฆ - 0 votes (0%)
๐Ÿ‡ง - 0 votes (0%)
๐Ÿ‡จ - 1 vote (100%)

rugged pike
#

.quiz leaderboard

wicked parrotBOT
#
Score Board

CookieTheCat#1756: 2800
Aboo Minister#8971: 1000

rugged pike
#

.quiz python 30

wicked parrotBOT
#
A quiz game is starting!

This game consists of 30 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: python

#
Question #1

When was Python first released?

rugged pike
#

1991

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`1991`**

Let's move to the next question.
Remaining questions: 29

#
Score Board

Aboo Minister#8971: 100

#
Question #2

What attribute of a closure contains the value closed over?

rugged pike
#

cell_contents

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`cell_contents`**

Let's move to the next question.
Remaining questions: 28

#
Score Board

Aboo Minister#8971: 200

#
Question #3

What exception, other than StopIteration, can you raise from a __getitem__ dunder to indicate to an iterator that it should stop?

rugged pike
#

indexerror

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`IndexError`**

Let's move to the next question.
Remaining questions: 27

#
Score Board

Aboo Minister#8971: 300

#
Question #4

What is the official name of this operator :=, introduced in 3.8?

rugged pike
#

assignmetn-expression opertaro

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`assignment-expression operator`**

Let's move to the next question.
Remaining questions: 26

#
Score Board

Aboo Minister#8971: 400

#
Question #5

Name the only non-dunder method of the builtin slice object.

rugged pike
#

indices

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`indices`**

Let's move to the next question.
Remaining questions: 25

#
Score Board

Aboo Minister#8971: 500

#
Question #6

What is a package that doesn't have a __init__ file called?

rugged pike
#

namespace package

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`namespace package`**

Let's move to the next question.
Remaining questions: 24

#
Score Board

Aboo Minister#8971: 600

#
Question #7

Is everything an instance of the object class (y/n)?

rugged pike
#

y

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`y, yes`**

Let's move to the next question.
Remaining questions: 23

#
Score Board

Aboo Minister#8971: 700

#
Question #8

What type does the & operator return when given 2 dict_keys objects?

rugged pike
#

set

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`set`**

Let's move to the next question.
Remaining questions: 22

#
Score Board

Aboo Minister#8971: 800

#
Question #9

Where does the name Python come from?

rugged pike
#

monty python

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`Monty Python, Monty Python's Flying Circus`**

Let's move to the next question.
Remaining questions: 21

#
Score Board

Aboo Minister#8971: 900

#
Question #10

Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)

rugged pike
#

Stopiteratoin

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`StopIteration`**

Let's move to the next question.
Remaining questions: 20

#
Score Board

Aboo Minister#8971: 1000

#
Question #11

Which of these is not a generator method?
(next, send, throw, close)

rugged pike
#

next

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`next`**

Let's move to the next question.
Remaining questions: 19

#
Score Board

Aboo Minister#8971: 1100

#
Question #12

What is the garbage collection strategy used by cpython to collect everything but reference cycles?

rugged pike
#

refcounting

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`reference counting, refcounting`**

Let's move to the next question.
Remaining questions: 18

#
Score Board

Aboo Minister#8971: 1200

#
Question #13

Is the __aiter__ method async (y/n)?

rugged pike
#

n

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`n, no`**

Let's move to the next question.
Remaining questions: 17

#
Score Board

Aboo Minister#8971: 1300

#
Question #14

What type is the attribute of a frame object that contains the current local variables?

rugged pike
#

dict

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`dict`**

Let's move to the next question.
Remaining questions: 16

#
Score Board

Aboo Minister#8971: 1400

#
Question #15

Which standard library module is designed for making simple parsers for languages like shell, as well as safe quoting of strings for use in a shell?

rugged pike
#

shelx

#

shlex

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`shlex`**

Let's move to the next question.
Remaining questions: 15

#
Score Board

Aboo Minister#8971: 1500

#
Question #16

Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?

rugged pike
#

__doc__

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **``__doc__``**

Let's move to the next question.
Remaining questions: 14

#
Score Board

Aboo Minister#8971: 1600

#
Question #17

Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)

rugged pike
#

Generator

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`Generator`**

Let's move to the next question.
Remaining questions: 13

#
Score Board

Aboo Minister#8971: 1700

#
Question #18

Which module when imported opens up a web browser tab that points to the classic 353 XKCD comic mentioning Python?

rugged pike
#

antgravity

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`antigravity`**

Let's move to the next question.
Remaining questions: 12

#
Score Board

Aboo Minister#8971: 1800

#
Question #19

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!

#

No one answered correctly!

#
The correct answer is **``__length_hint__``**

Let's move to the next question.
Remaining questions: 11

#
Score Board

Aboo Minister#8971: 1800

#
Question #20

Can you pickle a running list_iterator (y/n)?

#

20s left!

#

10s left!

#

No one answered correctly!

#
The correct answers are **`y, yes`**

Let's move to the next question.
Remaining questions: 10

#
Score Board

Aboo Minister#8971: 1800

#
Question #21

How is infinity represented in Python?

#

20s left!

#

10s left!

#

Better luck next time...

#
The correct answers are **`float("infinity"), float('infinity'), float("inf"), float('inf')`**

Let's move to the next question.
Remaining questions: 9

#
Score Board

Aboo Minister#8971: 1800

#
Question #22

What name does a lambda function have?

#

20s left!

#

10s left!

#

Better luck next time...

#
The correct answer is **`<lambda>`**

Let's move to the next question.
Remaining questions: 8

#
Score Board

Aboo Minister#8971: 1800

#
Question #23

How does one call a class who defines the behavior of their instance classes?

#

20s left!

#

10s left!

#

No one answered correctly!

#
The correct answers are **`a metaclass, metaclass`**

Let's move to the next question.
Remaining questions: 7

#
Score Board

Aboo Minister#8971: 1800

#
Question #24

What decorator is used to allow a protocol to be checked at runtime?

#

20s left!

#

10s left!

#

No one answered correctly!

#
The correct answers are **`runtime_checkable, typing.runtime_checkable`**

Let's move to the next question.
Remaining questions: 6

#
Score Board

Aboo Minister#8971: 1800

#
Question #25

Which of these characters is valid python outside of string literals in some context?
(@, $, ?)

#

20s left!

#

10s left!

#

No one answered correctly!

#
The correct answer is **`@`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

Aboo Minister#8971: 1800

#
Question #26

Which year was Python 3 released?

#

20s left!

rugged pike
#

oop

#

2008

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 75 points!

#
You got it! The correct answer is **`2008`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

Aboo Minister#8971: 1875

#
Question #27

Does numbers.Rational include the builtin object float (y/n)

rugged pike
#

n

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`n, no`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

Aboo Minister#8971: 1975

#
Question #28

What file extension is used by the site module to determine what to do at every start?

rugged pike
#

.pth

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`.pth`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

Aboo Minister#8971: 2075

#
Question #29

Which protocol is used to pass self to methods when accessed on classes?

rugged pike
#

describot

#

dscriptor

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`Descriptor`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

Aboo Minister#8971: 2175

#
Question #30

Which file contains all special site builtins, such as help or credits?

rugged pike
#

_sitebuilitisn

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`_sitebuiltins`**

Remaining questions: 0

#
Score Board

Aboo Minister#8971: 2275

#

The round has ended.

#

Congratulations @rugged pike :tada: You have won this quiz game with a grand total of 2275 points!

rugged pike
#

.quiz leaderboard

wicked parrotBOT
#
Score Board

Aboo Minister#8971: 3275
CookieTheCat#1756: 2800

rugged pike
#

bam

rugged pike
#

.quiz leaderboard

wicked parrotBOT
#
Score Board

Aboo Minister#8971: 3275
CookieTheCat#1756: 2800

rugged pike
#

.quiz cs 10

wicked parrotBOT
#
A quiz game is starting!

This game consists of 10 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: cs

#
Question #1

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?

rugged pike
#

branch prediction

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`branch prediction`**

Let's move to the next question.
Remaining questions: 9

#
Score Board

Aboo Minister#8971: 100

#
Question #2

In quantum computing, what is the full name of "qubit"?

rugged pike
#

quantum numerical bit

#

quantum numerical byte

wicked parrotBOT
#

20s left!

#

10s left!

rugged pike
#

quantum binary digit

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 50 points!

#
You got it! The correct answer is **`quantum binary digit`**

Let's move to the next question.
Remaining questions: 8

#
Score Board

Aboo Minister#8971: 150

#
Question #3

In neural networks, _______________ is an algorithm for supervised learning using gradient descent.

#

20s left!

#

10s left!

rugged pike
#

beeeh

#

beeo

wicked parrotBOT
#

No one answered correctly!

#
The correct answer is **`backpropagation`**

Let's move to the next question.
Remaining questions: 7

#
Score Board

Aboo Minister#8971: 150

#
Question #4

What is an interpreter capable of interpreting itself called?

rugged pike
#

metainterrpeter

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`metainterpreter`**

Let's move to the next question.
Remaining questions: 6

#
Score Board

Aboo Minister#8971: 250

#
Question #5

What is the most popular protocol (as of 2021) that handles communication between email servers?

rugged pike
#

smtp

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`SMTP, Simple Mail Transfer Protocol`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

Aboo Minister#8971: 350

#
Question #6

Which newline sequence does HTTP use?

rugged pike
#

\r\n

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`carriage return line feed, CRLF, \r\n`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

Aboo Minister#8971: 450

#
Question #7

What does SASS stand for?

rugged pike
#

syactically awesokme syteleshets

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`Syntactically Awesome Stylesheets, Syntactically Awesome Style Sheets`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

Aboo Minister#8971: 550

#
Question #8

What does HTML stand for?

rugged pike
#

hypertext markup language

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`HyperText Markup Language`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

Aboo Minister#8971: 650

#
Question #9

How many possible public IPv6 addresses are there (answer in 2^n)?

rugged pike
#

2^136

wicked parrotBOT
#

20s left!

rugged pike
#

2^118

#

2^132

wicked parrotBOT
#

10s left!

rugged pike
#

2^123

#

2^18

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 50 points!

#
You got it! The correct answer is **`2^128`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

Aboo Minister#8971: 700

#
Question #10

What does the "a" represent in a HSLA color value?

rugged pike
#

alpha

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`transparency, translucency, alpha value, alpha channel, alpha`**

Remaining questions: 0

#
Score Board

Aboo Minister#8971: 800

#

The round has ended.

#

Congratulations @rugged pike :tada: You have won this quiz game with a grand total of 800 points!

rugged pike
#

yay

spring brook
#

.help

wicked parrotBOT
#
Command Help

AdventOfCode
.adventofcode
All of the Advent of Code commands.

AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.

AvatarModify
.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.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.

prime mirage
#

.quiz leaderboard

wicked parrotBOT
#
Score Board

Aboo Minister#8971: 4075
CookieTheCat#1756: 2800

prime mirage
#

.quiz science

wicked parrotBOT
#
A quiz game is starting!

This game consists of 7 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: science

#
Question #1

About how many neurons are in the human brain?
(A. 1 billion, B. 10 billion, C. 100 billion, D. 300 billion)

prime mirage
#

C

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`C, 100 billion, 100 bil`**

Let's move to the next question.
Remaining questions: 6

#
Score Board

CookieTheCat#1756: 100

#
Question #2

As of 2021, how many elements are there in the Periodic Table?

prime mirage
#

118

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`118`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

CookieTheCat#1756: 200

#
Question #3

Which particle is emitted during the beta decay of a radioactive element?

prime mirage
#

Electron

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`an electron, the electron, electron`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

CookieTheCat#1756: 300

#
Question #4

How does one call the branch of physics that deals with the study of mechanical waves in gases, liquids, and solids including topics such as vibration, sound, ultrasound and infrasound

prime mirage
#

Acustics

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`acoustics`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

CookieTheCat#1756: 400

#
Question #5

Who discovered the theories of relativity?

prime mirage
#

Einstein

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`Albert Einstein, Einstein`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

CookieTheCat#1756: 500

#
Question #6

How does one describe the unit watt (unit of power) in SI base units?
IMPORTANT: enclose answer in backticks, use * for multiplication, ^ for exponentiation, and place your base units in this order: m - kg - s - A

#

20s left!

#

10s left!

#

Better luck next time...

#
The correct answer is **``m^2*kg*s^-3``**

Let's move to the next question.
Remaining questions: 1

#
Score Board

CookieTheCat#1756: 500

#
Question #7

What is the process by which green plants and certain other organisms transform light energy into chemical energy?

prime mirage
#

Photosynthesis

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`photosynthesis`**

Remaining questions: 0

#
Score Board

CookieTheCat#1756: 600

#

The round has ended.

#

Congratulations @prime mirage :tada: You have won this quiz game with a grand total of 600 points!

spring brook
#

.ping

wicked parrotBOT
#
:ping_pong: Pong!

Gateway Latency: 108ms

prime mirage
#

.ping

wicked parrotBOT
#
:ping_pong: Pong!

Gateway Latency: 108ms

viscid juniper
#

Hi

#

Wsp

#

.ping

wicked parrotBOT
#
:ping_pong: Pong!

Gateway Latency: 115ms

spring brook
#

.pinh

#

.ping

wicked parrotBOT
#
:ping_pong: Pong!

Gateway Latency: 109ms

wanton plinth
#

.quiz science

wicked parrotBOT
#
A quiz game is starting!

This game consists of 7 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: science

#
Question #1

The type of rock that is formed by the accumulation or deposition of mineral or organic particles at the Earth's surface, followed by cementation, is called...

wanton plinth
#

Diamond

wicked parrotBOT
#

20s left!

#

10s left!

#

Better luck next time...

#
The correct answers are **`sedimentary, sedimentary rock`**

Let's move to the next question.
Remaining questions: 6

#

No one has made it onto the leaderboard yet.

#
Question #2

Which vascular tissue transports water and minerals from the roots to the rest of a plant?

#

20s left!

wanton plinth
#

beans

wicked parrotBOT
#

10s left!

#

No one answered correctly!

#
The correct answers are **`the xylem, xylem`**

Let's move to the next question.
Remaining questions: 5

#

No one has made it onto the leaderboard yet.

#
Question #3

About how many neurons are in the human brain?
(A. 1 billion, B. 10 billion, C. 100 billion, D. 300 billion)

wanton plinth
#

C

wicked parrotBOT
#

@wanton plinth got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`C, 100 billion, 100 bil`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

Pim#3520: 100

#
Question #4

What is the force that causes objects to float in fluids called?

wanton plinth
#

ez

wicked parrotBOT
#

20s left!

wanton plinth
#

Density

wicked parrotBOT
#

10s left!

wanton plinth
#

idk

#

fluid density

#

boyanism

wicked parrotBOT
#

No one answered correctly!

#
The correct answer is **`buoyancy`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

Pim#3520: 100

wanton plinth
#

close

wicked parrotBOT
#
Question #5

What is the 7th planet of our Solar System?

wanton plinth
#

lmao idfk

#

venus

wicked parrotBOT
#

20s left!

wanton plinth
#

mars

#

jupyter

wicked parrotBOT
#

10s left!

wanton plinth
#

idk

wicked parrotBOT
#

Better luck next time...

#
The correct answer is **`Uranus`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

Pim#3520: 100

#
Question #6

In particle physics, the hypothetical isolated elementary particle with only one magnetic pole is termed as...

prime mirage
#

magnetic monopole

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`magnetic monopole`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

Pim#3520: 100
CookieTheCat#1756: 100

#
Question #7

Which law states that the global entropy in a closed system can only increase?

wanton plinth
#

ah well ofcourse

prime mirage
#

second law

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`second law, second law of thermodynamics`**

Remaining questions: 0

#
Score Board

CookieTheCat#1756: 200
Pim#3520: 100

#

The round has ended.

#

Congratulations @prime mirage :tada: You have won this quiz game with a grand total of 200 points!

wanton plinth
#

.

#

.quiz help

wicked parrotBOT
#
The available question categories are:

- 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!

wanton plinth
#

.quiz python

wicked parrotBOT
#
A quiz game is starting!

This game consists of 7 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: python

#
Question #1

Is everything an instance of the object class (y/n)?

prime mirage
#

y

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`y, yes`**

Let's move to the next question.
Remaining questions: 6

#
Score Board

CookieTheCat#1756: 100

#
Question #2

Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)

wanton plinth
#

NotImplemented

wicked parrotBOT
#

20s left!

wanton plinth
#

asyncio.CancelledError

#

StopIteration

prime mirage
#

StopIteration

wicked parrotBOT
#

@wanton plinth got the correct answer :tada: 75 points!

#
You got it! The correct answer is **`StopIteration`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

CookieTheCat#1756: 100
Pim#3520: 75

wanton plinth
#

ez

wicked parrotBOT
#
Question #3

Where does the name Python come from?

wanton plinth
#

snake

prime mirage
#

Monty python

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`Monty Python, Monty Python's Flying Circus`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

CookieTheCat#1756: 200
Pim#3520: 75

#
Question #4

Which year was Python 3 released?

wanton plinth
#

2017

prime mirage
#

2008

wanton plinth
#

2016

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`2008`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

CookieTheCat#1756: 300
Pim#3520: 75

#
Question #5

What type does the & operator return when given 2 dict_keys objects?

prime mirage
#

set

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`set`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

CookieTheCat#1756: 400
Pim#3520: 75

#
Question #6

Is the __aiter__ method async (y/n)?

prime mirage
#

y

wanton plinth
#

n

wicked parrotBOT
#

@wanton plinth got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`n, no`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

CookieTheCat#1756: 400
Pim#3520: 175

prime mirage
#

n

wicked parrotBOT
#
Question #7

What name does a lambda function have?

prime mirage
#

<lambda>

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`<lambda>`**

Remaining questions: 0

#
Score Board

CookieTheCat#1756: 500
Pim#3520: 175

#

The round has ended.

#

Congratulations @prime mirage :tada: You have won this quiz game with a grand total of 500 points!

daring swift
#

.quiz leaderboard

wicked parrotBOT
#
Score Board

CookieTheCat#1756: 4100
Aboo Minister#8971: 4075
Pim#3520: 275

daring swift
#

.quiz

wicked parrotBOT
#
A quiz game is starting!

This game consists of 7 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: cs

#
Question #1

What is the mathematical formalism which functional programming was built on?

#

20s left!

daring swift
wicked parrotBOT
#

10s left!

#

No one answered correctly!

#
The correct answer is **`lambda calculus`**

Let's move to the next question.
Remaining questions: 6

#

No one has made it onto the leaderboard yet.

#
Question #2

How many possible public IPv6 addresses are there (answer in 2^n)?

#

20s left!

daring swift
wicked parrotBOT
#

10s left!

#

Better luck next time...

#
The correct answer is **`2^128`**

Let's move to the next question.
Remaining questions: 5

#

No one has made it onto the leaderboard yet.

#
Question #3

What is the most popular protocol (as of 2021) that handles communication between email servers?

daring swift
#

Smtp

wicked parrotBOT
#

@daring swift got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`SMTP, Simple Mail Transfer Protocol`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

Peter parker#0001: 100

#
Question #4

Which of these sorting algorithms is not stable?
(Counting sort, quick sort, insertion sort, tim sort, bubble sort)

daring swift
#

Tim sort

wicked parrotBOT
#

20s left!

daring swift
#

Counting sort

wicked parrotBOT
#

10s left!

daring swift
#

Insertion sort

#

Quick sort

wicked parrotBOT
#

@daring swift got the correct answer :tada: 50 points!

#
You got it! The correct answers are **`quick, quick sort`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

Peter parker#0001: 150

#
Question #5

What are the components of digital devices that make up logic gates called?

daring swift
#

Transistors

wicked parrotBOT
#

@daring swift got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`transistors`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

Peter parker#0001: 250

#
Question #6

What does HTML stand for?

daring swift
#

Hyper text markup language

wicked parrotBOT
#

@daring swift got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`HyperText Markup Language`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

Peter parker#0001: 350

#
Question #7

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?

#

20s left!

#

10s left!

#

No one answered correctly!

#
The correct answer is **`branch prediction`**

Remaining questions: 0

#
Score Board

Peter parker#0001: 350

#

The round has ended.

#

Congratulations @daring swift :tada: You have won this quiz game with a grand total of 350 points!

daring swift
#

.quiz leaderboard

wicked parrotBOT
#
Score Board

CookieTheCat#1756: 4100
Aboo Minister#8971: 4075
Peter parker#0001: 350
Pim#3520: 275

wanton plinth
#

.quiz python

wicked parrotBOT
#
A quiz game is starting!

This game consists of 7 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: python

#
Question #1

Which year was Python 3 released?

wanton plinth
#

2008

wicked parrotBOT
#

@wanton plinth got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`2008`**

Let's move to the next question.
Remaining questions: 6

#
Score Board

Pim#3520: 100

#
Question #2

Can you pickle a running list_iterator (y/n)?

wanton plinth
#

y

wicked parrotBOT
#

@wanton plinth got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`y, yes`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

Pim#3520: 200

#
Question #3

What is the official name of this operator :=, introduced in 3.8?

#

20s left!

#

10s left!

wanton plinth
#

uhm

wicked parrotBOT
#

Better luck next time...

#
The correct answer is **`assignment-expression operator`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

Pim#3520: 200

#
Question #4

How is infinity represented in Python?

wanton plinth
#

inf

wicked parrotBOT
#

20s left!

wanton plinth
#

float("inf")

wicked parrotBOT
#

@wanton plinth got the correct answer :tada: 75 points!

#
You got it! The correct answers are **`float("infinity"), float('infinity'), float("inf"), float('inf')`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

Pim#3520: 275

#
Question #5

What name does a lambda function have?

wanton plinth
#

Oh sick

#

<lambda>

wicked parrotBOT
#

@wanton plinth got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`<lambda>`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

Pim#3520: 375

#
Question #6

When was Python first released?

wanton plinth
#

1991

wicked parrotBOT
#

@wanton plinth got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`1991`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

Pim#3520: 475

#
Question #7

What is a package that doesn't have a __init__ file called?

wanton plinth
#

Shit

wicked parrotBOT
#

20s left!

#

10s left!

#

Better luck next time...

#
The correct answer is **`namespace package`**

Remaining questions: 0

#
Score Board

Pim#3520: 475

#

The round has ended.

#

Congratulations @wanton plinth :tada: You have won this quiz game with a grand total of 475 points!

prime mirage
#

.quiz leaderboard

wicked parrotBOT
#
Score Board

CookieTheCat#1756: 4100
Aboo Minister#8971: 4075
Pim#3520: 750
Peter parker#0001: 350

prime mirage
#

.quiz python

wicked parrotBOT
#
A quiz game is starting!

This game consists of 7 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: python

#
Question #1

What is a package that doesn't have a __init__ file called?

prime mirage
#

namespace package

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`namespace package`**

Let's move to the next question.
Remaining questions: 6

#
Score Board

CookieTheCat#1756: 100

#
Question #2

Name the only non-dunder method of the builtin slice object.

#

20s left!

prime mirage
#

indecies

wicked parrotBOT
#

10s left!

prime mirage
#

Ahh how do you spell it

wicked parrotBOT
#

Better luck next time...

#
The correct answer is **`indices`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

CookieTheCat#1756: 100

#
Question #3

What file extension is used by the site module to determine what to do at every start?

prime mirage
#

.pth

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`.pth`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

CookieTheCat#1756: 200

#
Question #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!

#

No one answered correctly!

#
The correct answer is **``__length_hint__``**

Let's move to the next question.
Remaining questions: 3

#
Score Board

CookieTheCat#1756: 200

#
Question #5

What is the official name of this operator :=, introduced in 3.8?

#

20s left!

prime mirage
#

oof what was it

wicked parrotBOT
#

10s left!

#

Better luck next time...

#
The correct answer is **`assignment-expression operator`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

CookieTheCat#1756: 200

#
Question #6

What type is the attribute of a frame object that contains the current local variables?

main scarab
#

.help

wicked parrotBOT
#
Command Help

AdventOfCode
.adventofcode
All of the Advent of Code commands.

AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.

AvatarModify
.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.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.

prime mirage
#

dict

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`dict`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

CookieTheCat#1756: 300

#
Question #7

Is the __aiter__ method async (y/n)?

prime mirage
#

n

wicked parrotBOT
#

@prime mirage got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`n, no`**

Remaining questions: 0

#
Score Board

CookieTheCat#1756: 400

#

The round has ended.

#

Congratulations @prime mirage :tada: You have won this quiz game with a grand total of 400 points!

prime mirage
#

.fool

wicked parrotBOT
prime mirage
#

.status cat 201

wicked parrotBOT
#
**Status: 201**
true spade
#

.help

wicked parrotBOT
#
Command Help

AdventOfCode
.adventofcode
All of the Advent of Code commands.

AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.

AvatarModify
.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.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.

true spade
#

.connect4

wicked parrotBOT
#

@true spade Seems like there's no one here to play. Use .connect4 ai to play against a computer.

true spade
#

.connect4 ai

wicked parrotBOT
#
Connect 4: billyeatcookies VS Sir Lancebot

1๏ธโƒฃ 2๏ธโƒฃ 3๏ธโƒฃ 4๏ธโƒฃ 5๏ธโƒฃ 6๏ธโƒฃ 7๏ธโƒฃ
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: :white_circle: ๐Ÿ”ต :white_circle: ๐Ÿ”ด :white_circle: :white_circle:
:white_circle: :white_circle: ๐Ÿ”ต :white_circle: ๐Ÿ”ต :white_circle: :white_circle:
:white_circle: ๐Ÿ”ด ๐Ÿ”ต :white_circle: ๐Ÿ”ต :white_circle: ๐Ÿ”ด
๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ด

#

Game Over! @true spade won against @wicked parrot

true spade
#

.help

wicked parrotBOT
#
Command Help

AdventOfCode
.adventofcode
All of the Advent of Code commands.

AprilFoolVideos
.fool
Get a random April Fools' video from Youtube.

AvatarModify
.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.
.avatareasterify [colours...]
This "Easterifies" the user's avatar.
.mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
.prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
.spookyavatar [member]
Spookify an user's avatar.

true spade
#

.connect4 ai

wicked parrotBOT
#
Connect 4: billyeatcookies VS Sir Lancebot

1๏ธโƒฃ 2๏ธโƒฃ 3๏ธโƒฃ 4๏ธโƒฃ 5๏ธโƒฃ 6๏ธโƒฃ 7๏ธโƒฃ
:white_circle: ๐Ÿ”ด :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ต :white_circle: :white_circle: :white_circle:
:white_circle: ๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ด ๐Ÿ”ด ๐Ÿ”ด
๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ต ๐Ÿ”ด
๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ต ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ต
๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ด ๐Ÿ”ต
๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ต

#

Game Over! @wicked parrot won against @true spade

wicked parrotBOT
#
Connect 4: AlphaSoldier VS Sir Lancebot

1๏ธโƒฃ 2๏ธโƒฃ 3๏ธโƒฃ 4๏ธโƒฃ 5๏ธโƒฃ 6๏ธโƒฃ 7๏ธโƒฃ
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
:white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle: :white_circle:
๐Ÿ”ด :white_circle: :white_circle: :white_circle: ๐Ÿ”ด :white_circle: :white_circle:
๐Ÿ”ด :white_circle: :white_circle: :white_circle: ๐Ÿ”ต ๐Ÿ”ต :white_circle:
๐Ÿ”ต :white_circle: :white_circle: ๐Ÿ”ด ๐Ÿ”ด ๐Ÿ”ต :white_circle:
๐Ÿ”ต :white_circle: :white_circle: ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ด :white_circle:
๐Ÿ”ต :white_circle: ๐Ÿ”ต ๐Ÿ”ด ๐Ÿ”ต ๐Ÿ”ด :white_circle:

#

@main scarab, it's your turn! React with the column you want to place your token in.

#

@main scarab, you took too long. Game over!

#
**If you had $100 bill in your Easter Basket, what would you do with it?**

Suggest more topics here!

pearl zephyr
#

.catify

wicked parrotBOT
#

Your catified nickname is: Ankith101 | แ“šแ˜แ—ข

vocal nova
#

.catify

wicked parrotBOT
#

Your catified nickname is: GennieGuy | แ“šแ˜แ—ข

vocal nova
#

.topic

wicked parrotBOT
#
**What is the tallest building you've entered?**

Suggest more topics here!

vocal nova
#

burj

#

.avatar_modify

wicked parrotBOT
#
Command Help

.avatar_modify
Can also use: avatar_mod, avatarmod, pfp_mod, pfpmod

Groups all of the pfp modifying commands to allow a single concurrency limit.

Subcommands:
8bitify
Pixelates your avatar and changes the palette to an 8bit one.
avatareasterify [colours...]
This "Easterifies" the user's avatar.
mosaic [squares=16]
Splits your avatar into x squares, randomizes them and stitches them back into a new image!
prideavatar [option=lgbt] [pixels=64]
This surrounds an avatar with a border of a specified LGBT flag.
spookyavatar [member]
Spookify an user's avatar.

vocal nova
#

.avatareasterify

wicked parrotBOT
#

Here is your lovely avatar, all bright and colourful
with Easter pastel colours. Enjoy :D

vocal nova
#

I'm the fucking demon

magic flax
#

.catify

wicked parrotBOT
#

Your catified nickname is: Guilhotina | แ“šแ˜แ—ข | แ“‡แ˜แ—ข

hallow timber
#

.catify

wicked parrotBOT
#

Your catified nickname is: MorowyKomandos | แ˜กแ˜แ—ข

hallow timber
#

.help

wicked parrotBOT
#
Command Help

BunnyNameGenerator
.bunnyname
Picks a random bunny name from a JSON file.

Catify
.catify <text>
Convert the provided text into a cat themed sentence by interspercing cats throughout text.

CheatSheet
.cheat [search_terms...]
Search cheat.sh.

ConnectFour
.connect_four [board_size=7] [emoji1=๐Ÿ”ต] [emoji2=๐Ÿ”ด]
Play the classic game of Connect Four with someone!

ConvoStarters
.topic
Responds with a random topic to start a conversation.

hallow timber
#

.8bitify

wicked parrotBOT
#
Your 8-bit avatar

Here is your avatar. I think it looks all cool and 'retro'.

hallow timber
#

.cheat

wicked parrotBOT
#

Result Of cht.sh

#  Python: significance of -u option?
#  
#  From python --help:
#  
#  >     -u     : unbuffered binary stdout and stderr; also
#  PYTHONUNBUFFERED=x
          see man page for details on internal buffering relating to '-u'

#  The manpage states:
#  
#  >     -u     Force  stdin,  stdout and stderr to be totally
#  unbuffered.  On systems where it matters, also put stdin,
        stdout and stderr in binary mode.  Note that there is internal buffering  in  xreadlines(),  readlines()
        and  file-object  iterators  ("for  line in sys.stdin") which is not influenced by this option.  To work
        around this, you will want to use "sys.stdin.readline()" inside a "while 1:" loop.

#  Python opens the stdin, -out and -error streams in a buffered mode;
#  it'll read or write in larger chunks, keeping data in memory until a
#  threshold is reached. -u disables those buffers.
#  
#  Also, python can interpret newlines on open files and translate them
#  from and to the native platform
... (truncated - too many lines)```
Full results: https://cheat.sh/python/
hallow timber
#

.cheat git

wicked parrotBOT
#

Result Of cht.sh

#  Python Git Module experiences?
#  
#  While this question was asked a while ago and I don't know the state
#  of the libraries at that point, it is worth mentioning for searchers
#  that GitPython does a good job of abstracting the command line tools
#  so that you don't need to use subprocess. There are some useful built
#  in abstractions that you can use, but for everything else you can do
#  things like:

import git
repo = git.Repo( '/home/me/repodir' )
print repo.git.status()
# checkout and track a remote branch
print repo.git.checkout( 'origin/somebranch', b='somebranch' )
# add a file
print repo.git.add( 'somefile' )
# commit
print repo.git.commit( m='my commit message' )
# now we are one commit ahead
print repo.git.status()

#  Everything else in GitPython just makes it easier to navigate. I'm
#  fairly well satisfied with this library and appreciate that it is a
#  wrapper on the underlying git tools.
#  
#  UPDATE: I've switched to using the sh module for not just git but 
... (truncated - too many lines)```
Full results: https://cheat.sh/python/git
hallow timber
#

.cheat git stash

wicked parrotBOT
#

Result Of cht.sh

#  question_id: 28265396
#  Per the docs, ["Using git directly"](http://gitpython.readthedocs.org/
#  en/stable/tutorial.htmlusing-git-directly):
#  
#  > In case you are missing functionality as it has not been wrapped,
#  you may
  #  conveniently use the git command directly. It is owned by each
#  repository
  #  instance.
#  
#  Thus, you could call \`git stash save\` with

 repo.git.stash('save')

#  [unutbu] [so/q/28265396] [cc by-sa 3.0]

https://cheat.sh/python/git+stash

hallow timber
#

.cheat str.join

wicked parrotBOT
#

Result Of cht.sh

#  Use [\`join\`](https://docs.python.org/library/stdtypes.htmlstr.join):

 >>> sentence = ['this', 'is', 'a', 'sentence']
 >>> '-'.join(sentence)
 'this-is-a-sentence'
 >>> ' '.join(sentence)
 'this is a sentence'

#  [Burhan Khalid] [so/q/12453580] [cc by-sa 3.0]

https://cheat.sh/python/str.join

viscid lion
#

.cheat list

wicked parrotBOT
#

Result Of cht.sh

#  python - Why does += behave unexpectedly on lists?
#  
#  The general answer is that += tries to call the __iadd__ special
#  method, and if that isn't available it tries to use __add__ instead.
#  So the issue is with the difference between these special methods.
#  
#  The __iadd__ special method is for an in-place addition, that is it
#  mutates the object that it acts on. The __add__ special method returns
#  a new object and is also used for the standard + operator.
#  
#  So when the += operator is used on an object which has an __iadd__
#  defined the object is modified in place. Otherwise it will instead try
#  to use the plain __add__ and return a new object.
#  
#  That is why for mutable types like lists += changes the object's
#  value, whereas for immutable types like tuples, strings and integers a
#  new object is returned instead (a += b becomes equivalent to a = a +
#  b).
#  
#  For types that support both __iadd__ and __add__ you therefore have to
#  be careful whi
... (truncated - too many lines)```
Full results: https://cheat.sh/python/list
viscid lion
#

.cheat aiohttp

wicked parrotBOT
#

Result Of cht.sh

#  Python aiohttp/asyncio - how to process returned data
#  
#  Here's an example with concurrent.futures.ProcessPoolExecutor (https:/
#  /docs.python.org/3/library/concurrent.futures.htmlprocesspoolexecutor
#  ). If it's created without specifying max_workers, the implementation
#  will use os.cpu_count instead. Also note that asyncio.wrap_future (htt
#  ps://github.com/python/asyncio/blob/ae82bb79/asyncio/futures.pyL469)
#  is public but undocumented. Alternatively, there's
#  AbstractEventLoop.run_in_executor (https://docs.python.org/3/library
#  /asyncio-eventloop.htmlasyncio.AbstractEventLoop.run_in_executor).

import asyncio
from concurrent.futures import ProcessPoolExecutor

import aiohttp
import lxml.html

def process_page(html):
    '''Meant for CPU-bound workload'''
    tree = lxml.html.fromstring(html)
    return tree.find('.//title').text

async def fetch_page(url, session):
    '''Meant for IO-bound workload'''
    async with session.get(url, timeout = 15) as res:
      re
... (truncated - too many lines)```
Full results: https://cheat.sh/python/aiohttp
vocal nova
#

.bunnyname

wicked parrotBOT
#

Thumper

vocal nova
#

.bunnyname

wicked parrotBOT
#

Thumper

vocal nova
#

.bunnyname thumper

wicked parrotBOT
#

Fuzzy

vocal nova
#

.bunnyname Thumper.

wicked parrotBOT
#

Dandelion

vocal nova
#

.bunnyname Maseratti

wicked parrotBOT
#

Goldie

vocal nova
#

.bunnyname Golden

wicked parrotBOT
#

Fuzzy

vocal nova
#

.bunnyname algo.algo

wicked parrotBOT
#

Skipper

vocal nova
#

.bunnyname guy\\///|/$

wicked parrotBOT
#

Flopsy

vocal nova
#

.bunnyname -bash

wicked parrotBOT
#

Dandelion

vocal nova
#

.bunnyname Cowsai

wicked parrotBOT
#

Buttercup

rugged pike
#

.quiz leaderboard

wicked parrotBOT
#
Score Board

CookieTheCat#1756: 4500
Aboo Minister#8971: 4075
Pim#3520: 750
Peter parker#0001: 350

rugged pike
#

damn

#

.quiz python 10

wicked parrotBOT
#
A quiz game is starting!

This game consists of 10 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: python

#
Question #1

What dunder method is used by the tuple constructor to optimize converting an iterator to a tuple (answer should be enclosed in backticks!)?

rugged pike
#

__length_hint__

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **``__length_hint__``**

Let's move to the next question.
Remaining questions: 9

#
Score Board

Aboo Minister#8971: 100

#
Question #2

Does numbers.Rational include the builtin object float (y/n)

rugged pike
#

n

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`n, no`**

Let's move to the next question.
Remaining questions: 8

#
Score Board

Aboo Minister#8971: 200

#
Question #3

Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)

rugged pike
#

StopIteratoin

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`StopIteration`**

Let's move to the next question.
Remaining questions: 7

#
Score Board

Aboo Minister#8971: 300

#
Question #4

What file extension is used by the site module to determine what to do at every start?

rugged pike
#

.pth

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`.pth`**

Let's move to the next question.
Remaining questions: 6

#
Score Board

Aboo Minister#8971: 400

#
Question #5

What type does the & operator return when given 2 dict_keys objects?

rugged pike
#

set

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`set`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

Aboo Minister#8971: 500

#
Question #6

What is the garbage collection strategy used by cpython to collect everything but reference cycles?

rugged pike
#

refcounting

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`reference counting, refcounting`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

Aboo Minister#8971: 600

#
Question #7

How is infinity represented in Python?

rugged pike
#

float("inf")

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`float("infinity"), float('infinity'), float("inf"), float('inf')`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

Aboo Minister#8971: 700

#
Question #8

Where does the name Python come from?

rugged pike
#

monty python

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`Monty Python, Monty Python's Flying Circus`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

Aboo Minister#8971: 800

#
Question #9

Which file contains all special site builtins, such as help or credits?

rugged pike
#

_sitebuiltins

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`_sitebuiltins`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

Aboo Minister#8971: 900

#
Question #10

What name does a lambda function have?

rugged pike
#

<lambda>

wicked parrotBOT
#

@rugged pike got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`<lambda>`**

Remaining questions: 0

#
Score Board

Aboo Minister#8971: 1000

#

The round has ended.

#

Congratulations @rugged pike :tada: You have won this quiz game with a grand total of 1000 points!

rugged pike
#

yay

#

.quiz leaderboard

wicked parrotBOT
#
Score Board

Aboo Minister#8971: 5075
CookieTheCat#1756: 4500
Pim#3520: 750
Peter parker#0001: 350

vocal nova
#

.quiz python 11

wicked parrotBOT
#
A quiz game is starting!

This game consists of 11 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: python

#
Question #1

Which of these characters is valid python outside of string literals in some context?
(@, $, ?)

#

20s left!

vocal nova
#

@

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 75 points!

#
You got it! The correct answer is **`@`**

Let's move to the next question.
Remaining questions: 10

#
Score Board

GennieGuy#3182: 75

#
Question #2

Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)

#

20s left!

vocal nova
#

NotImplemented

wicked parrotBOT
#

10s left!

#

Better luck next time...

#
The correct answer is **`StopIteration`**

Let's move to the next question.
Remaining questions: 9

vocal nova
#

asyncio.CancelledError

wicked parrotBOT
#
Score Board

GennieGuy#3182: 75

#
Question #3

What type does the & operator return when given 2 dict_keys objects?

#

20s left!

vocal nova
#

tuple

wicked parrotBOT
#

10s left!

#

Better luck next time...

#
The correct answer is **`set`**

Let's move to the next question.
Remaining questions: 8

#
Score Board

GennieGuy#3182: 75

#
Question #4

Which protocol is used to pass self to methods when accessed on classes?

#

20s left!

vocal nova
#

get

#

pass

#

bypass

wicked parrotBOT
#

10s left!

#

No one answered correctly!

#
The correct answer is **`Descriptor`**

Let's move to the next question.
Remaining questions: 7

#
Score Board

GennieGuy#3182: 75

#
Question #5

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...

#
The correct answer is **``__length_hint__``**

Let's move to the next question.
Remaining questions: 6

#
Score Board

GennieGuy#3182: 75

#
Question #6

Which standard library module is designed for making simple parsers for languages like shell, as well as safe quoting of strings for use in a shell?

#

20s left!

vocal nova
#

urllib

wicked parrotBOT
#

10s left!

vocal nova
#

urlib.parser

#

urllib.parser

wicked parrotBOT
#

Better luck next time...

#
The correct answer is **`shlex`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

GennieGuy#3182: 75

#
Question #7

How does one call a class who defines the behavior of their instance classes?

#

20s left!

#

10s left!

vocal nova
#

method.Class

wicked parrotBOT
#

Better luck next time...

#
The correct answers are **`a metaclass, metaclass`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

GennieGuy#3182: 75

#
Question #8

What file extension is used by the site module to determine what to do at every start?

#

20s left!

#

10s left!

vocal nova
#

xml

#

json

wicked parrotBOT
#

Better luck next time...

#
The correct answer is **`.pth`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

GennieGuy#3182: 75

#
Question #9

Is everything an instance of the object class (y/n)?

vocal nova
#

n

#

y

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`y, yes`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

GennieGuy#3182: 175

#
Question #10

When was Python first released?

vocal nova
#

1981

#

191

wicked parrotBOT
#

20s left!

vocal nova
#

1996

#

1995

#

1992

#

1993

wicked parrotBOT
#

10s left!

vocal nova
#

1985

#

1989

wicked parrotBOT
#

No one answered correctly!

#
The correct answer is **`1991`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

GennieGuy#3182: 175

#
Question #11

Name the only non-dunder method of the builtin slice object.

#

20s left!

vocal nova
#

splash

wicked parrotBOT
#

10s left!

#

No one answered correctly!

#
The correct answer is **`indices`**

Remaining questions: 0

#
Score Board

GennieGuy#3182: 175

#

The round has ended.

#

Congratulations @vocal nova :tada: You have won this quiz game with a grand total of 175 points!

vocal nova
#

.quiz python 12

wicked parrotBOT
#
A quiz game is starting!

This game consists of 12 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: python

#
Question #1

Does numbers.Rational include the builtin object float (y/n)

vocal nova
#

y

#

n

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`n, no`**

Let's move to the next question.
Remaining questions: 11

#
Score Board

GennieGuy#3182: 100

#
Question #2

Name the only non-dunder method of the builtin slice object.

#

20s left!

#

10s left!

vocal nova
#

index

#

zsh

wicked parrotBOT
#

Better luck next time...

#
The correct answer is **`indices`**

Let's move to the next question.
Remaining questions: 10

#
Score Board

GennieGuy#3182: 100

#
Question #3

What type is the attribute of a frame object that contains the current local variables?

vocal nova
#

.

wicked parrotBOT
#

20s left!

vocal nova
#

/

wicked parrotBOT
#

10s left!

vocal nova
#

'

#

.

wicked parrotBOT
#

Better luck next time...

#
The correct answer is **`dict`**

Let's move to the next question.
Remaining questions: 9

#
Score Board

GennieGuy#3182: 100

#
Question #4

What decorator is used to allow a protocol to be checked at runtime?

#

20s left!

#

10s left!

vocal nova
#

@lethal pumicemand.run

wicked parrotBOT
#

No one answered correctly!

#
The correct answers are **`runtime_checkable, typing.runtime_checkable`**

Let's move to the next question.
Remaining questions: 8

#
Score Board

GennieGuy#3182: 100

#
Question #5

What is the garbage collection strategy used by cpython to collect everything but reference cycles?

#

20s left!

vocal nova
#

pwh

#

indexing

wicked parrotBOT
#

10s left!

vocal nova
#

wheel

wicked parrotBOT
#

No one answered correctly!

#
The correct answers are **`reference counting, refcounting`**

Let's move to the next question.
Remaining questions: 7

#
Score Board

GennieGuy#3182: 100

#
Question #6

Which protocol is used to pass self to methods when accessed on classes?

#

20s left!

#

10s left!

vocal nova
#

reference

#

evoking

wicked parrotBOT
#

Better luck next time...

#
The correct answer is **`Descriptor`**

Let's move to the next question.
Remaining questions: 6

vocal nova
#

calling

wicked parrotBOT
#
Score Board

GennieGuy#3182: 100

#
Question #7

What is a package that doesn't have a __init__ file called?

vocal nova
#

stunt

wicked parrotBOT
#

20s left!

vocal nova
#

module

wicked parrotBOT
#

10s left!

#

No one answered correctly!

#
The correct answer is **`namespace package`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

GennieGuy#3182: 100

#
Question #8

Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)

#

20s left!

#

10s left!

vocal nova
#

Iterable

#

Generator

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 50 points!

#
You got it! The correct answer is **`Generator`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

GennieGuy#3182: 150

#
Question #9

Which of these characters is valid python outside of string literals in some context?
(@, $, ?)

vocal nova
#

@

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`@`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

GennieGuy#3182: 250

#
Question #10

What exception, other than StopIteration, can you raise from a __getitem__ dunder to indicate to an iterator that it should stop?

#

20s left!

#

10s left!

#

No one answered correctly!

#
The correct answer is **`IndexError`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

GennieGuy#3182: 250

#
Question #11

Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)

#

20s left!

vocal nova
#

StopIteration

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 75 points!

#
You got it! The correct answer is **`StopIteration`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

GennieGuy#3182: 325

#
Question #12

Is everything an instance of the object class (y/n)?

vocal nova
#

yes

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`y, yes`**

Remaining questions: 0

#
Score Board

GennieGuy#3182: 425

#

The round has ended.

#

Congratulations @vocal nova :tada: You have won this quiz game with a grand total of 425 points!

vocal nova
#

.quiz python 13

wicked parrotBOT
#
A quiz game is starting!

This game consists of 13 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: python

#
Question #1

Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?

#

20s left!

vocal nova
#

enclosure

wicked parrotBOT
#

10s left!

#

No one answered correctly!

#
The correct answer is **``__doc__``**

Let's move to the next question.
Remaining questions: 12

#

No one has made it onto the leaderboard yet.

#
Question #2

Is everything an instance of the object class (y/n)?

vocal nova
#

yes

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`y, yes`**

Let's move to the next question.
Remaining questions: 11

#
Score Board

GennieGuy#3182: 100

#
Question #3

What decorator is used to allow a protocol to be checked at runtime?

#

20s left!

#

10s left!

#

No one answered correctly!

#
The correct answers are **`runtime_checkable, typing.runtime_checkable`**

Let's move to the next question.
Remaining questions: 10

#
Score Board

GennieGuy#3182: 100

#
Question #4

What type is the attribute of a frame object that contains the current local variables?

vocal nova
#

runtime_checkable

wicked parrotBOT
#

20s left!

vocal nova
#

dict

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 75 points!

#
You got it! The correct answer is **`dict`**

Let's move to the next question.
Remaining questions: 9

#
Score Board

GennieGuy#3182: 175

#
Question #5

What is the garbage collection strategy used by cpython to collect everything but reference cycles?

vocal nova
#

reference

wicked parrotBOT
#

20s left!

#

10s left!

vocal nova
#

Counting

#

Referencing

wicked parrotBOT
#

No one answered correctly!

#
The correct answers are **`reference counting, refcounting`**

Let's move to the next question.
Remaining questions: 8

#
Score Board

GennieGuy#3182: 175

#
Question #6

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!

vocal nova
#

getitem

wicked parrotBOT
#

No one answered correctly!

#
The correct answer is **``__length_hint__``**

Let's move to the next question.
Remaining questions: 7

#
Score Board

GennieGuy#3182: 175

#
Question #7

Which file contains all special site builtins, such as help or credits?

#

20s left!

vocal nova
#

main

wicked parrotBOT
#

10s left!

vocal nova
#

docs

wicked parrotBOT
#

Better luck next time...

#
The correct answer is **`_sitebuiltins`**

Let's move to the next question.
Remaining questions: 6

#
Score Board

GennieGuy#3182: 175

#
Question #8

Name the only non-dunder method of the builtin slice object.

#

20s left!

#

10s left!

#

No one answered correctly!

#
The correct answer is **`indices`**

Let's move to the next question.
Remaining questions: 5

#
Score Board

GennieGuy#3182: 175

#
Question #9

Which of these characters is valid python outside of string literals in some context?
(@, $, ?)

vocal nova
#

@

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`@`**

Let's move to the next question.
Remaining questions: 4

#
Score Board

GennieGuy#3182: 275

#
Question #10

Does numbers.Rational include the builtin object float (y/n)

vocal nova
#

n

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`n, no`**

Let's move to the next question.
Remaining questions: 3

#
Score Board

GennieGuy#3182: 375

#
Question #11

Where does the name Python come from?

vocal nova
#

Snake

#

Mont

wicked parrotBOT
#

20s left!

vocal nova
#

Mont Python

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 75 points!

#
You got it! The correct answers are **`Monty Python, Monty Python's Flying Circus`**

Let's move to the next question.
Remaining questions: 2

#
Score Board

GennieGuy#3182: 450

#
Question #12

Is the __aiter__ method async (y/n)?

vocal nova
#

n

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 100 points!

#
You got it! The correct answers are **`n, no`**

Let's move to the next question.
Remaining questions: 1

#
Score Board

GennieGuy#3182: 550

#
Question #13

What file extension is used by the site module to determine what to do at every start?

#

20s left!

vocal nova
#

_sitemodule

wicked parrotBOT
#

10s left!

#

Better luck next time...

#
The correct answer is **`.pth`**

Remaining questions: 0

#
Score Board

GennieGuy#3182: 550

#

The round has ended.

#

Congratulations @vocal nova :tada: You have won this quiz game with a grand total of 550 points!

vocal nova
#

.quiz python 14

wicked parrotBOT
#
A quiz game is starting!

This game consists of 14 questions.

**Rules: **

  1. Only enclose your answer in backticks when the question tells you to.
  2. If the question specifies an answer format, follow it or else it won't be accepted.
  3. You have 30s per question. Points for each question reduces by 25 after 10s or after a hint.
  4. No cheating and have fun!

Category: python

#
Question #1

When was Python first released?

vocal nova
#

1991

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 100 points!

#
You got it! The correct answer is **`1991`**

Let's move to the next question.
Remaining questions: 13

#
Score Board

GennieGuy#3182: 100

#
Question #2

How is infinity represented in Python?

#

20s left!

vocal nova
#

True

#

while

wicked parrotBOT
#

10s left!

vocal nova
#

while True

wicked parrotBOT
#

No one answered correctly!

#
The correct answers are **`float("infinity"), float('infinity'), float("inf"), float('inf')`**

Let's move to the next question.
Remaining questions: 12

#
Score Board

GennieGuy#3182: 100

#
Question #3

What file extension is used by the site module to determine what to do at every start?

#

20s left!

vocal nova
#

.pth

wicked parrotBOT
#

@vocal nova got the correct answer :tada: 75 points!

#
You got it! The correct answer is **`.pth`**

Let's move to the next question.
Remaining questions: 11

#
Score Board

GennieGuy#3182: 175

#
Question #4

Which standard library module is designed for making simple parsers for languages like shell, as well as safe quoting of strings for use in a shell?

#

20s left!