#sir-lancebot-playground
1 messages ยท Page 237 of 1
.wa short define dictionary
determine the essential quality of
a reference book containing an alphabetical list of words with information about them
.wa Python
.wa discord
.wa short discord
lack of agreement or harmony
.quiz python 30
float('inf')
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 29
Is everything an instance of the object class (y/n)?
y
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 28
What is the garbage collection strategy used by cpython to collect everything but reference cycles?
refcounting
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 27
What type is the attribute of a frame object that contains the current local variables?
dict
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 26
What attribute of a closure contains the value closed over?
cell_contents
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 25
Where does the name Python come from?
monty python
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 24
When was Python first released?
1991
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 23
What dunder method is used by the tuple constructor to optimize converting an iterator to a tuple (answer should be enclosed in backticks!)?
__length_hint__
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 22
What name does a lambda function have?
<lambda>
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 21
Which of these is not a generator method?
(next, send, throw, close)
next
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 20
What exception, other than StopIteration, can you raise from a __getitem__ dunder to indicate to an iterator that it should stop?
IndexError
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 19
Name the only non-dunder method of the builtin slice object.
indices
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 18
What is the official name of this operator :=, introduced in 3.8?
assignment expression operator
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 17
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?
shlex
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 16
What decorator is used to allow a protocol to be checked at runtime?
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 15
Is the __aiter__ method async (y/n)?
n
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 14
What type does the & operator return when given 2 dict_keys objects?
set
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 13
Does numbers.Rational include the builtin object float (y/n)
n
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 12
What file extension is used by the site module to determine what to do at every start?
.pth
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 11
Can you pickle a running list_iterator (y/n)?
y
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 10
Which protocol is used to pass self to methods when accessed on classes?
descriptor
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 9
Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)
stopiteration
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 8
Which file contains all special site builtins, such as help or credits?
20s left!
10s left!
give it to me
Better luck next time...
Let's move to the next question.
Remaining questions: 7
Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)
generator
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
Which module when imported opens up a web browser tab that points to the classic 353 XKCD comic mentioning Python?
antigravity
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
How does one call a class who defines the behavior of their instance classes?
metaclass
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
What is a package that doesn't have a __init__ file called?
namespace packag
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
Which of these characters is valid python outside of string literals in some context?
(@, $, ?)
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?
__doc__
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Which year was Python 3 released?
2008
@inner pendant got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@inner pendant Congratulations on winning this quiz game with a grand total of 2900 points :tada:
.quiz python 30
What dunder method is used by the tuple constructor to optimize converting an iterator to a tuple (answer should be enclosed in backticks!)?
__length_hint__
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 29
What decorator is used to allow a protocol to be checked at runtime?
runtime_checkable
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 28
Which year was Python 3 released?
2008
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 27
Which of these is not a generator method?
(next, send, throw, close)
next
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 26
What type does the & operator return when given 2 dict_keys objects?
set
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 25
How does one call a class who defines the behavior of their instance classes?
metaclass
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 24
Does numbers.Rational include the builtin object float (y/n)
n
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 23
What is the official name of this operator :=, introduced in 3.8?
assignment expression operator
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 22
Which file contains all special site builtins, such as help or credits?
_sitebuiltins
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 21
Which of these characters is valid python outside of string literals in some context?
(@, $, ?)
@
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 20
Can you pickle a running list_iterator (y/n)?
y
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 19
Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)
stopiteration
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 18
Is the __aiter__ method async (y/n)?
n
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 17
Which module when imported opens up a web browser tab that points to the classic 353 XKCD comic mentioning Python?
antigravity
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 16
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?
shlex
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 15
What name does a lambda function have?
<lambda>
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 14
What is a package that doesn't have a __init__ file called?
namespace package
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 13
What attribute of a closure contains the value closed over?
cell_contents
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 12
What type is the attribute of a frame object that contains the current local variables?
dict
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 11
Where does the name Python come from?
monty python
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 10
When was Python first released?
1991
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 9
What file extension is used by the site module to determine what to do at every start?
.pth
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 8
What exception, other than StopIteration, can you raise from a __getitem__ dunder to indicate to an iterator that it should stop?
IndexError
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 7
Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?
__doc__
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)
generator
@inner pendant 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?
refcounting
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
Is everything an instance of the object class (y/n)?
y
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
Which protocol is used to pass self to methods when accessed on classes?
descriptor
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
How is infinity represented in Python?
float('inf')
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Name the only non-dunder method of the builtin slice object.
indices
@inner pendant got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@inner pendant Congratulations on winning this quiz game with a grand total of 3000 points :tada:
whooooo
.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:**
**`leaderboard `**
*View everyone's score for this bot session.*
**`stop `**
*Stop a quiz game if its running in the channel.*
.quiz python 5
How does one call a class who defines the behavior of their instance classes?
20s left!
metaclass
@tawny raven got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 4
Is everything an instance of the object class (y/n)?
n
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 3
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
What attribute of a closure contains the value closed over?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 1
Which file contains all special site builtins, such as help or credits?
20s left!
10s left!
ok i dont know python ๐ญ
Better luck next time...
Remaining questions: 0
The round has ended.
@tawny raven Congratulations on winning this quiz game with a grand total of 75 points :tada:
.battleship
@hidden token Game cancelled.
.help battleship
**```
.battleship
*Play a game of Battleship with someone else!
This will set up a message waiting for someone else to react and play along.
The game takes place entirely in DMs.
Make sure you have your DMs open so that the bot can message you.*
**Subcommands:**
**`ships `**
*Lists the ships that are found on the battleship grid.*
.battleship ships
Carrier
Battleship
Cruiser
Submarine
Destroyer
5
4
3
3
2
.help
AvatarModify
.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.
.reverse <text>
Reverses the sent text.
.spookyavatar
Spookify an user's avatar.
Battleship
.battleship
Play a game of Battleship with someone else!
BeMyValentine
.bemyvalentine <user> [valentine_type]
Send a valentine to a specified user with the lovefest role.
Bookmark
.bookmark <target_message> [title=Bookmark]
Send the author a link to target_message via DMs.
.help wtf
**```
.wtf_python <query>
**Can also use:** `WTF`, `wtf`
*Search WTF Python repository.
Gets the link of the fuzzy matched query from https://github.com/satwikkansal/wtfpython.
Usage:
--> .wtf wild imports*
.help
DragNames
.dragname
Sends a message with a drag queen name.
DuckGamesDirector
.duckduckduckgoose
Start a new Duck Duck Duck Goose game.
EarthPhotos
.earth_photos
Returns a random photo of earth, sourced from Unsplash.
EasterFacts
.eggfact
Get easter egg facts.
EasterRiddle
.riddle
Gives a random riddle, then provides 2 hints at certain intervals before revealing the answer.
.cheat
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/
.cheat minecraft
Result Of cht.sh
# Python - Interact with Minecraft Classic server
#
# Putting the comments together, here's what you get:
import socket
s = socket.socket()
KEY = "ce73007bb263c20268da59eb9fb52b06" # If you want to help me, you can use this key to connect to the server
USERNAME = "Vik2015"
HOST = "68.53.14.13"
PORT = 25566
s.connect((HOST, PORT))
print 'connected'
# login packet (pkt id, protocol version, user name, verification key, pad)
s.sendall('%c%c%-64s%-64s%c' % (0, 7, USERNAME, KEY, 0))
print 'sentall'
print s.recv(4096)
s.close()
# [tdelaney] [so/q/19734832] [cc by-sa 3.0]
.cheat website host
Result Of cht.sh
# question_id: 6796402
# In your server thay sais that they have php, so maybe you can use
# [this php function][1]. to retrive more info, executing a python
# script:
# hacking.py
import sys
print sys.version_info
# and after you make something like this
<?php
// echo $path = exec('pwd');
// exec python script
echo exec('python hacking.py');
?>
# dont forget the file permissions
#
# [1]: http://www.php.net/manual/en/function.exec.php
#
# [sacabuche] [so/q/6796402] [cc by-sa 3.0]
.cheat host
Result Of cht.sh
# Is there a good, free small Python web host?
#
# * http://wiki.python.org/moin/FreeHosts
# * http://wiki.python.org/moin/NonCommercialHosting
# * http://wiki.python.org/moin/SpecializedCommercialHosts
# * http://wiki.python.org/moin/OtherCommercialHosts
#
# Also a good read:
#
# http://www.goodwebhosting.info/article.py/15
#
# And a last one:
#
# http://blog.dscpl.com.au/2011/01/awesome-year-for-python-web-
# hosting.html
#
# [user945967] [so/q/9795315] [cc by-sa 3.0]
Result Of cht.sh
# Creating a simple python web application
#
# While you can use a microframework like Flask [1] for quickly getting
# started, you can get closer to the metal. Try learning about the HTTP
# protocol and implement your own server using the http module. Python
# 3's http.server contains a class SimpleHTTPServer [2] which can be
# very good for understanding how you're communicating between the
# client and your process.
#
# [1] http://flask.pocoo.org/docs/0.11/quickstart
#
# [2] https://docs.python.org/2/library/simplehttpserver.html
#
# [FaureHu] [so/q/38861124] [cc by-sa 3.0]
.cheat roblox
Result Of cht.sh
# With the Roblox API, 401 indicates that your user is not
# authenticated. You need to get a \`.ROBLOSECURITY\` cookie. Never share
# this cookie because it grants full access to your account.
#
# \`\`\`python
# cookies = {'.ROBLOSECURITY': 'YOUR .ROBLOSECURITY'}
# \`\`\`
# This would be where you store your cookies. Then in the request you
# can use the \`cookies\` parameter as shown [here][1].
#
# [1]: https://2.python-
# requests.org/en/master/user/quickstart/cookies
#
# [ColeSquared] [so/q/61438965] [cc by-sa 3.0]
.quiz python
Snake
Monty Python's Flying Circus
@main scarab got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 6
Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)
Sequence
20s left!
@main scarab got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 5
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: 4
Can you pickle a running list_iterator (y/n)?
@main scarab got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
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: 2
Which module when imported opens up a web browser tab that points to the classic 353 XKCD comic mentioning Python?
20s left!
10s left!
idk bro
Better luck next time...
Let's move to the next question.
Remaining questions: 1
What attribute of a closure contains the value closed over?
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 225 points :tada:
.status 200
.latex $log_b\left(x\right)\coloneqq\frac{log\left(x\right)}{log\left(b\right)}$
.trivia wiki
- 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.
.trivia wikipedia
Guess the title of the Wikipedia article.
On February 14, 2018, 19-year-old Nikolas Cruz opened fire on students and staff at Marjory ******** ******* **** ****** in Parkland, Florida, killing 17 people and injuring 17 others. Cruz fled the scene on foot by blending in with other students, and was arrested without incident about an hour later in nearby Coral Springs and charged with 17 counts of premeditated murder and 17 counts of attempted murder. Police and prosecutors investigated "a pattern of disciplinary issues and unnerving behavior."
20s left!
10s left!
No one answered correctly!
Information
On February 14, 2018, 19-year-old Nikolas Cruz opened fire on students and staff at Marjory Stoneman Douglas High School in Parkland, Florida, killing 17 people and injuring 17 others. Cruz fled the scene on foot by blending in with other students, and was arrested without incident about an hour later in nearby Coral Springs and charged with 17 counts of premeditated murder and 17 counts of attempted murder. Police and prosecutors investigated "a pattern of disciplinary issues and unnerving behavior."
Let's move to the next question.
Remaining questions: 6
No one has made it onto the leaderboard yet.
Guess the title of the Wikipedia article.
**** is a 1965 science-fiction ***** by American author Frank Herbert, originally published as two separate serials in Analog magazine. It tied with Roger Zelazny's This Immortal for the Hugo Award in 1966, and it won the inaugural Nebula Award for Best *****. It is the first installment of the **** saga; in 2003, it was cited as the world's best-selling science fiction *****.
20s left!
10s left!
Better luck next time...
Information
Dune is a 1965 science-fiction novel by American author Frank Herbert, originally published as two separate serials in Analog magazine. It tied with Roger Zelazny's This Immortal for the Hugo Award in 1966, and it won the inaugural Nebula Award for Best Novel. It is the first installment of the Dune saga; in 2003, it was cited as the world's best-selling science fiction novel.
Let's move to the next question.
Remaining questions: 5
No one has made it onto the leaderboard yet.
Guess the title of the Wikipedia article.
***** Omari **** is an American rapper, record producer, and fashion designer. Born in Atlanta and raised in Chicago, **** gained recognition as a producer for Roc-A-Fella Records in the early 2000s, producing singles for several popular artists. Intent on pursuing a solo career as a rapper, **** released his debut album, The College Dropout (2004), to critical and commercial success, and founded the record label GOOD Music.
20s left!
10s left!
Better luck next time...
Information
Kanye Omari West is an American rapper, record producer, and fashion designer. Born in Atlanta and raised in Chicago, West gained recognition as a producer for Roc-A-Fella Records in the early 2000s, producing singles for several popular artists. Intent on pursuing a solo career as a rapper, West released his debut album, The College Dropout (2004), to critical and commercial success, and founded the record label GOOD Music.
Let's move to the next question.
Remaining questions: 4
No one has made it onto the leaderboard yet.
Guess the title of the Wikipedia article.
***** *** ****** is an American actress and writer. She is the recipient of several accolades, including a BAFTA Award, two Golden Globe Awards and a star on the Hollywood Walk of Fame in 1998.
20s left!
10s left!
Better luck next time...
Information
Jamie Lee Curtis is an American actress and writer. She is the recipient of several accolades, including a BAFTA Award, two Golden Globe Awards and a star on the Hollywood Walk of Fame in 1998.
Let's move to the next question.
Remaining questions: 3
No one has made it onto the leaderboard yet.
Guess the title of the Wikipedia article.
********** is an American satirical black comedy-drama television ****** created by Jesse Armstrong. It premiered on June 3, 2018, on HBO. The ****** centers on the Roy family, the dysfunctional owners of Waystar RoyCo, a global media and entertainment conglomerate, who are fighting for control of the company amid uncertainty about the health of the family's patriarch, Logan Roy.
20s left!
10s left!
No one answered correctly!
Information
Succession is an American satirical black comedy-drama television series created by Jesse Armstrong. It premiered on June 3, 2018, on HBO. The series centers on the Roy family, the dysfunctional owners of Waystar RoyCo, a global media and entertainment conglomerate, who are fighting for control of the company amid uncertainty about the health of the family's patriarch, Logan Roy.
Let's move to the next question.
Remaining questions: 2
No one has made it onto the leaderboard yet.
Guess the title of the Wikipedia article.
*** ****-** is a South Korean actor. He began his career on stage and appeared in numerous plays before making his screen debut in 2017 with Good Manager. He rose to prominence with the 2020 television series Start-Up and gained more recognition for his main role in 2021's Hometown Cha-Cha-Cha, which aired on tvN and Netflix.
20s left!
10s left!
Better luck next time...
Information
Kim Seon-ho is a South Korean actor. He began his career on stage and appeared in numerous plays before making his screen debut in 2017 with Good Manager. He rose to prominence with the 2020 television series Start-Up and gained more recognition for his main role in 2021's Hometown Cha-Cha-Cha, which aired on tvN and Netflix.
Let's move to the next question.
Remaining questions: 1
No one has made it onto the leaderboard yet.
Guess the title of the Wikipedia article.
**** is a **** American epic science fiction **** directed by Denis Villeneuve with a screenplay by Jon Spaihts, Villeneuve, and Eric Roth. It is the first of a planned two-part adaptation of the 1965 novel of the same name by Frank Herbert, primarily covering the first half of the book. Set in the far future, it follows Paul Atreides, as he and his family, the noble House Atreides, are thrust into a war for the dangerous desert planet Arrakis, between the native Fremen people and the enemy invaders, the House Harkonnen. The **** stars an ensemble cast including Timothรฉe Chalamet, Rebecca Ferguson, Oscar Isaac, Josh Brolin, Stellan Skarsgรฅrd, Dave Bautista, Stephen McKinley Henderson, Zendaya, David Dastmalchian, Chang Chen, Sharon Duncan-Brewster, Charlotte Rampling, Jason Momoa, and Javier Bardem.
20s left!
10s left!
No one answered correctly!
Information
Dune is a 2021 American epic science fiction film directed by Denis Villeneuve with a screenplay by Jon Spaihts, Villeneuve, and Eric Roth. It is the first of a planned two-part adaptation of the 1965 novel of the same name by Frank Herbert, primarily covering the first half of the book. Set in the far future, it follows Paul Atreides, as he and his family, the noble House Atreides, are thrust into a war for the dangerous desert planet Arrakis, between the native Fremen people and the enemy invaders, the House Harkonnen. The film stars an ensemble cast including Timothรฉe Chalamet, Rebecca Ferguson, Oscar Isaac, Josh Brolin, Stellan Skarsgรฅrd, Dave Bautista, Stephen McKinley Henderson, Zendaya, David Dastmalchian, Chang Chen, Sharon Duncan-Brewster, Charlotte Rampling, Jason Momoa, and Javier Bardem.
Remaining questions: 0
No one has made it onto the leaderboard yet.
The round has ended.
.src triviaquiz
!e
import re
key = "Desktop\Work\tensorflow-master\tensorflow\python\ops\nn_ops.conv1d"
pattern = re.compile(r'([^\]+)\([^\]+)$')
if "\" in key:
cleaned_key = pattern.search(key)
new_key = cleaned_key.group(1)
new_key2 = cleaned_key.group(2)
print(f"{new_key}.{new_key2}")
@deep beacon :white_check_mark: Your eval job has completed with return code 0.
ops.nn_ops.conv1d
!e
import re
key = "Desktop\Work\tensorflow-master\tensorflow\python\ops\nn_ops.conv1d"
pattern = re.compile(r'([^\]+)\([^\]+)$')
if "\" in key:
cleaned_key = pattern.search(key)
new_key = cleaned_key.group(1)
new_key2 = cleaned_key.group(2)
print(f"{new_key}.{new_key2}")
@deep beacon :white_check_mark: Your eval job has completed with return code 0.
ops.nn_ops.conv1d
.candy
๐ฅ @wise junco: 72
๐ฅ @royal sinew: 55
๐ฅ @past remnant: 44
๐
@viscid python: 23
๐
@whole lark: 15
Candies will randomly appear on messages sent.
Hit the candy when it appears as fast as possible to get the candy!
But beware the ghosts...
.hangman
The word was speak.
.challenge
The prime numbers are not regularly spaced. For example from 2 to 3 the gap is 1.
From 3 to 5 the gap is 2. From 7 to 11 it is 4.
Between 2 and 50 we have the following pairs of 2-gaps primes:
3-5, 5-7, 11-13, 17-19, 29-31, 41-43
A prime gap of length n is a run of n-1 consecutive composite numbers between two successive primes (see: http://mathworld.wolfram.com/PrimeGaps.html).
We will write a function gap with parameters:
-
g(integer >= 2) which indicates the gap we are looking for -
m(integer > 2) which gives the start of the search (m inclusive) -
n(integer >= m) which gives the end of the search (n inclusive)n won't go beyond 1100000.
In the example above gap(2, 3, 50) will return [3, 5] or (3, 5) or {3, 5} which is the first pair between 3 and 50 with a 2-gap.
... continue reading
5 kyu
.challenge
CLEAR CUTTER'S NEEDS YOUR HELP!
The logging company Clear Cutter's makes its money by optimizing the price-to-length of each log they cut before selling them. An example of one of their price tables is included:
# So a price table p
p = [ 0, 1, 5, 8, 9, 10]
# Can be imagined as:
# length i | 0 1 2 3 4 5 *in feet*
# price pi | 0 1 5 8 9 10 *in money*
They hired an intern last summer to create a recursive function for them to easily calculate the most profitable price for a log of length n using price table p as follows:
def cut_log(p, n):
if (n == 0):
return 0
q = -1
for i in range(1, n+1)
q = max(q, p[i] + cut_log(p, n-i))
return q
function cutLog(p, n) {
if (n == 0) return 0;
let q = -1;
for (let i = 1; i <= n; i++) {
q = Math.max(q, p[i] + cutLog(p, n - i));
}
return q;
}
int cutLog(List<int> p, int n) {
if (n == 0) return 0;
int q = -1;... [continue reading](https://codewars.com/kata/54b058ce56f22dc6fe0011df)
4 kyu
Today's Spooky Name Rate Game ends now, and the winner(s) is(are)...
Hmm... Looks like no one participated! :cry:
.ttt
It's time for the game! Let's begin.



:tada: @outer barn won this game! :tada:
.ttt
It's time for the game! Let's begin.



:tada: @outer barn won this game! :tada:
.ttt
It's time for the game! Let's begin.



:tada: @outer barn won this game! :tada:
.rps scissors
@outer barn You and Sir Lancebot played scissors, it's a tie.
uhh
.ttt
It's time for the game! Let's begin.

4๏ธโฃ

8๏ธโฃ 
:tada: @astral ingot won this game! :tada:
.ttt
It's time for the game! Let's begin.
2๏ธโฃ 
6๏ธโฃ

:tada: @astral ingot won this game! :tada:
.help
RPS
.rps <move>
Play the classic game of Rock Paper Scissors with your own sir-lancebot!
RealPython
.realpython <user_search>
Send 5 articles that match the user's search terms.
RecommendGame
.recommendgame
Sends an Embed of a random game recommendation.
Reddit
.reddit
View the top posts from various subreddits.
RomanceMovieFinder
.romancemovie
Randomly selects a romance movie and displays information about it.
.spookyavatar
.halloweenify
.challenge
Definition
Balanced number is the number that * The sum of all digits to the left of the middle digit(s) and the sum of all digits to the right of the middle digit(s) are equal*.
Task
Given a number, Find if it is Balanced or not .
Warm-up (Highly recommended)
Playing With Numbers Series
Notes
-
If the number has an odd number of digits then there is only one middle digit, e.g.
92645has middle digit6; otherwise, there are two middle digits , e.g.1301has middle digits3and0 -
The middle digit(s) should not be considered when determining whether a number is balanced or not, e.g
413023is a balanced number because the left sum and right sum are both5. -
Number passed is always Positive .
-
Return the result as String
... continue reading
7 kyu
.topic
!e f"{ctx.guild.banner}"
@deep beacon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'ctx' is not defined
!e print("14450,Sarah".split(','))
@deep beacon :warning: Your eval job has completed with return code 0.
[No output]
!e print("14450,Sarah".split(','))
@deep beacon :white_check_mark: Your eval job has completed with return code 0.
['14450', 'Sarah']
.quiz python 30
How does one call a class who defines the behavior of their instance classes?
metaclass
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 29
Which year was Python 3 released?
2008
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 28
Is the __aiter__ method async (y/n)?
n
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 27
Is everything an instance of the object class (y/n)?
y
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 26
Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)
generator
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 25
What is the garbage collection strategy used by cpython to collect everything but reference cycles?
refcounting
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 24
How is infinity represented in Python?
float('inf')
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 23
Where does the name Python come from?
monty python
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 22
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?
shlex
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 21
Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?
__doc__
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 20
What is the official name of this operator :=, introduced in 3.8?
assignment expression operator
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 19
Which file contains all special site builtins, such as help or credits?
.quiz stop
Quiz stopped.
AdventOfCode
.adventofcode
All of the Advent of Code commands.
Anagram
.anagram
Given shuffled letters, rearrange them into anagrams.
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.
Check out this April Fools' video by google.
Dozens of wild Pokรฉmon have taken up residence on streets, amidst forests and atop mountains throughout Google Maps.
To catch 'em all, grab your Pokรฉ Ball and the newest version of Google Maps for iPhone or Android. Then tap the search bar, "press start," and begin your quest.
And, follow Google Maps on Google+, Facebook or Twitter for hints ...
20s left!
Check out this April Fools' video by google.
Trial Version: http://goo.gl/i4onu
Google Maps is now available for 8-bit Nintendo Entertainment Systems (NES). Availability in Google Store is TBD but you can try it on your browser by going to http://maps.google.com and clicking "Quest" in the upper right hand corner of the map. Also...
Happy April Fools 2012!
Check out this April Fools' video by google.
Once and for all, remove all the bad jokes from your phone with Files Go.
https://gc23t.app.goo.gl/badjoke
Check out this April Fools' video by razer.
*** REFORMULATED FOR HUMAN CONSUMPTION - MEET RESPAWN BY RAZER: http://www.respawnbyrazer.com ***
Become the extension of the world's deadliest gaming hardware with Project Venom V2: http://rzr.to/venomv2
Formulated with Nano-mechanical bot technologies, achieve peak gaming performance and beyond. Be the machine.
Song Credit: ASCEND by Jay C...
:incoming_envelope: :ok_hand: applied mute to @main scarab until <t:1635097477:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 6
No one has made it onto the leaderboard yet.
What is the natural log of -1 (use i for imaginary number)?
20s left!
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 5
No one has made it onto the leaderboard yet.
What is the term used to describe two triangles that have equal corresponding sides and angle measures?
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.
โ ฯr^2h is the volume of which 3 dimensional figure?
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.
6a^2 is the surface area of which 3 dimensional figure?
20s left!
10s left!
No one answered correctly!
Let's move to the next question.
Remaining questions: 2
No one has made it onto the leaderboard yet.
Which trigonometric function is defined as hypotenuse/opposite?
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.
1/100th of a second is also termed as what?
20s left!
centisecond
@velvet igloo got the correct answer :tada: 75 points!
Remaining questions: 0
The round has ended.
@velvet igloo Congratulations on winning this quiz game with a grand total of 75 points :tada:
.challenge
Consider a sequence u where u is defined as follows:
- The number
u(0) = 1is the first one inu. - For each
xinu, theny = 2 * x + 1andz = 3 * x + 1must be inutoo. - There are no other numbers in
u.
Example:
u = [1, 3, 4, 7, 9, 10, 13, 15, 19, 21, 22, 27, ...]
1 gives 3 and 4, then 3 gives 7 and 10, 4 gives 9 and 13, then 7 gives 15 and 22 and so on...
Task:
Given parameter n the function dbl_linear (or dblLinear...) returns the element u(n) of the ordered sequence u (ordered with < so there are no duplicates) .
Example:
dbl_linear(10) should return 22
Note:
Focus attention on efficiency
4 kyu
bot#1889
.quack
someone finally used the command lol
.quiz python 5
What file extension is used by the site module to determine what to do at every start?
.pth
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
What attribute of a closure contains the value closed over?
cell_contents
@inner pendant 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)?
y
@inner pendant 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
@inner pendant 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)
n
@inner pendant got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@inner pendant Congratulations on winning this quiz game with a grand total of 500 points :tada:
.quiz math 5
5
@inner pendant got the correct answer :tada: 75 points!
Let's move to the next question.
Remaining questions: 4
Does the harmonic series converge or diverge?
diverge
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
โ ฯr^2h is the volume of which 3 dimensional figure?
cone
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
In probability, the ______ _____ of an experiment or random trial is the set of all possible outcomes of it.
20s left!
10s left!
Help Pancakes
Better luck next time...
Let's move to the next question.
Remaining questions: 1
6a^2 is the surface area of which 3 dimensional figure?
20s left!
cube
@inner pendant got the correct answer :tada: 75 points!
Remaining questions: 0
The round has ended.
@inner pendant Congratulations on winning this quiz game with a grand total of 350 points :tada:
.quiz math 5
In set builder notation, what does {p/q | q โ 0, p & q โ Z} represent?
rational numbers
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
Which trigonometric function is defined as hypotenuse/opposite?
cosecant
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
What is the formula for surface area of a sphere?
pi*r^2
20s left!
1/3 * pi * r ^2
10s left!
Better luck next time...
Let's move to the next question.
Remaining questions: 2
6a^2 is the surface area of which 3 dimensional figure?
cube
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
heron's formula
@inner pendant got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@inner pendant Congratulations on winning this quiz game with a grand total of 400 points :tada:
.quiz cs 1
A hypothetical point in time at which technological growth becomes uncontrollable and irreversible, resulting in unforeseeable changes to human civilization is termed as...?
singularity
@inner pendant got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@inner pendant Congratulations on winning this quiz game with a grand total of 100 points :tada:
.quiz
The three main components of a normal atom are: protons, neutrons, and...
electron
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
The Heisenberg's Uncertainty Principle states that the position and ________ of a quantum object can't be both exactly measured at the same time.
20s left!
existence
10s left!
wave
Better luck next time...
Let's move to the next question.
Remaining questions: 5
What is the name of our galaxy group in which the Milky Way resides?
ur mom
20s left!
ugh
10s left!
!e
print("UGH")
@inner pendant :white_check_mark: Your eval job has completed with return code 0.
UGH
No one answered correctly!
Let's move to the next question.
Remaining questions: 4
20s left!
10s left!
!e
print("fudge")
@inner pendant :white_check_mark: Your eval job has completed with return code 0.
fudge
Better luck next time...
Let's move to the next question.
Remaining questions: 3
What is the process used to separate substances with different polarity in a mixture, using a stationary and mobile phase?
.quiz stop
Quiz stopped.
.quiz python 3
20s left!
What exception, other than StopIteration, can you raise from a __getitem__ dunder to indicate to an iterator that it should stop?
!e
print("IndexError")
@inner pendant :white_check_mark: Your eval job has completed with return code 0.
IndexError
10s left!
indexerror
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
Name the only non-dunder method of the builtin slice object.
No one answered correctly!
indices
Remaining questions: -2
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
Which one of these protocols/abstract base classes does the builtin range object NOT implement?
(Sequence, Iterable, Generator)
Which law states that the current through a conductor between two points is directly proportional to the voltage across the two points?
generator
@inner pendant got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@inner pendant Congratulations on winning this quiz game with a grand total of 300 points :tada:
!e
print("UWU")
@inner pendant :white_check_mark: Your eval job has completed with return code 0.
UWU
.quiz python 12
<lambda>
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 11
Name the only non-dunder method of the builtin slice object.
indices
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 10
What is the official name of this operator :=, introduced in 3.8?
assignment expression operator
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 9
What attribute of a closure contains the value closed over?
cell_contents
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 8
Which attribute is the documentation string of a function/method/class stored in (answer should be enclosed in backticks!)?
__doc__
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 7
What type is the attribute of a frame object that contains the current local variables?
dict
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
Which of these is not a generator method?
(next, send, throw, close)
next
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
When was Python first released?
1991
@inner pendant got the correct answer :tada: 100 points!
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!)?
__lenth_hint__
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
Which file contains all special site builtins, such as help or credits?
20s left!
10s left!
_sitebuiltins
@inner pendant got the correct answer :tada: 50 points!
Let's move to the next question.
Remaining questions: 2
Can you pickle a running list_iterator (y/n)?
y
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 1
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?
shlex
@inner pendant got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@inner pendant Congratulations on winning this quiz game with a grand total of 1150 points :tada:
.quiz python 6
What is the garbage collection strategy used by cpython to collect everything but reference cycles?
refcounting
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 5
What is the official name of this operator :=, introduced in 3.8?
assignment expression operator
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 4
What name does a lambda function have?
<lambda>
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 3
Which of these is a subclass of Exception?
(NotImplemented, asyncio.CancelledError, StopIteration)
stopiteration
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 2
What is a package that doesn't have a __init__ file called?
namespace package
@inner pendant 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
@inner pendant got the correct answer :tada: 100 points!
Remaining questions: 0
The round has ended.
@inner pendant Congratulations on winning this quiz game with a grand total of 600 points :tada:
.quiz cs
nand
@inner pendant got the correct answer :tada: 100 points!
Let's move to the next question.
Remaining questions: 6
What is computing capable of performing exaFLOPS called?
20s left!
.quiz stop
Quiz stopped.
.halloweenify
wow
.halloweenify
.uwu DM-Friends
DM-Fwiends
@south zinc, you have not linked a GitHub account
You can link your GitHub account using:
.hackstats link github_username
Or query GitHub stats directly using:
.hackstats github_username
.hacktoberstats link bsoyka
@south zinc, your GitHub username has been added
.hacktoberstats
No valid Hacktoberfest PRs found for 'bsoyka'
hi