#off-topic-lounge-text
1 messages · Page 29 of 1
Yep
Maya
Gui
yep
Alright
Yep
I don't know and I'm sorry I am having a hard time typing fast enough to answer you
Okay thank you :3
Have a good one
hello is anyone free at the moment ! 🙂
yup
anyone here atm to assist?
hi
whats a scatter tool? what does it
@novel canyon Might I be of any assistance at this time, or are you just browsing?
I want to talk with someone that explain me with my code. But i can't talk. It's curious because I already sent more than 50 messages.
oof im patiently wait for this to be resovled first then !
There are other threshold conditions in addition to the messaging requirement.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
!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.
btw you can send more than 2000 characters since discord has implemented a new thing to view files within discord
Hey @novel canyon!
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:
it is totally upto you to put it in a variable or not
!e py my_list = [1,2,3] print(my_list.pop(-1)) print(my_list)
@night lily :white_check_mark: Your eval job has completed with return code 0.
001 | 3
002 | [1, 2]
Youtuber, Corey Schafer
@terse forum
i am trying to make a thing that pastes a number presses enter the selects it all deletes it and writes the next number...```py
import time
import pynput
from pynput.keyboard import *
keyboard = Controller()
press = 100000
time.sleep(4)
while True:
str(press)
keyboard.type(press)
time.sleep(2)
keyboard.press(Key.enter)
keyboard.releash(Key.enter)
time.sleep(4)
keyboard.press(Key.ctrl)
keyboard.releash(Key.ctrl)
keyboard.press("a")
keyboard.releash("a")
keyboard.press(Key.backspace)
keyboard.releash(Key.backspace)
time.sleep(2)
int(press)
press + 1```
Traceback (most recent call last):
File "C:\Users\argyr\PycharmProjects\zoomhost\claim_host.py", line 10, in <module>
keyboard.type(press)
File "C:\Users\argyr\AppData\Local\Programs\Python\Python39\lib\site-packages\pynput\keyboard_base.py", line 488, in type
for i, character in enumerate(string):
TypeError: 'int' object is not iterable
in short i am trying to make a brute force that only types passwords from 6-10 numbers
how do i re-set the variable
same with int(press)
ok can you tell me what press is?
what does it hold
what does it mean
it holds the numbers 10000 and after the loop there is a +1 that adds and for exaple sets it to 100001
alright
i am trying to make a password brute force tool for a program that i have forgot my password
import time
from pynput.keyboard import *
keyboard = Controller()
press = 100000
time.sleep(4)
while True:
keyboard.type(str(press))
time.sleep(2)
keyboard.press(Key.enter)
keyboard.releash(Key.enter)
time.sleep(4)
keyboard.press(Key.ctrl)
keyboard.releash(Key.ctrl)
keyboard.press("a")
keyboard.releash("a")
keyboard.press(Key.backspace)
keyboard.releash(Key.backspace)
time.sleep(2)
press + 1
so basically i input the string version of press
into keyboard.type
wait do you understand
if you want to change the value/type of a variable
you have to reset it with press = str(press)
yeah thanks it works
or press = int(press)
kk
yes but you should also understand ;-;
kk thanks
@undone yoke i have 3 questions
- everytime the loop reruns the press vuriable gets reset
- how can i make the program stop by pressing a button
- how can i make the proggram show the last 100 numbers it tried
the first i fixed it
ill take a look now @rugged isle
kk
"how can i make the program stop by pressing a button" - you'll have to use a GUI for that - i would suggest taking a look at PyQT5
"everytime the loop reruns the press vuriable gets reset " - can you repaste your code here?
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
how can i make the proggram show the last 100 numbers it tried
@ Argyris i dont know what your program does
so i wouldnt know...
it just writes a number
hey is anyone free to help me with something?
@drifting cave in code/help 1 vc if you're free and still need help
same with @primal bison
cool
hi
Hey there, how goes it
import random
import string
def random_char(y):
return ''.join(random.choice(string.ascii_letters) for x in range(y))
ez= random_char(5)
print(ez)
driver = webdriver.Chrome()
driverr = 'https://prnt.sc/' + ez
driver.get(driverr)
it just displays two ran``` it just displays two random letters instead of 5
Actually what are you trying to do?
Thanks, good and you ?
Why are you trying to randomly scour through that url?
Morning
hi
so how long you guys been writing Python for
thats the plan
you do it as a hobby or occupation ?
check .py Extension in windows settings
7 years, first as a hobby, then 2.5 years as occupation. Now it became a hobby again hehe but there's one project on my company that needs Python, so I code sometimes.
hello was wondering if anybody is familiar with the text -processing had a question 🙂
yo
oh sweet yeah tying to pick it up as a hobby to make projects and scripts to make my life a bit easier
any suggestions on some cool beginner projects ?
hello
Hay
Heyo
Hi! Can you help me please?
Why my discord bot all time skip this part of code?
@Bot.event
async def on_meassage(meassage):
with open('economy.json','r') as f:
money = json.load(f)
async def free(ctx):
if not str(ctx.author.id) in money:
money[str(ctx.author.id)] = {}
money[str(ctx.author.id)]['Money'] = 0
if str(ctx.author.id) in money:
money[str(ctx.author.id)]['Money'] += 1
with open("economy.json", "w") as f:
json.dump(money,f)
does it have to do anything with the wrong message spelling?
Hello If anyone is able to hop in a vc and help me out with my GUI tkinter project I would rly appreciate it
atm im stuck and idk how to advance
you don't call function "free" maybe
Morning
no, it should to change value in .json file
i change some, but still nothing
@Bot.event
async def on_meassage(message):
with open('economy.json','r') as f:
money = json.load(f)
if str(message.author.id) in money:
money[str(message.author.id)]['Money'] += 1
with open('economy.json','w') as f:
json.dump(money,f)
await Bot.process_commands(message)
oh... Try to rename func in "on_message"))
i did, but nothing
@Bot.event
async def on_message(message):
with open('economy.json','r') as f:
money = json.load(f)
async def update_data(money,ctx):
if str(ctx.author.id) in money:
money[str(ctx.author.id)]['Money'] += 1
with open('economy.json','w') as f:
json.dump(money,f)
if not str(ctx.author.id) in money:
money[str(ctx.author.id)] = {}
money[str(ctx.author.id)]['Money'] = 0
await Bot.process_commands(message)
try it: ```python
@Bot.event
async def on_message(ctx):
with open('economy.json', 'r') as f:
money = json.load(f)
if not str(ctx.author.id) in money:
money[str(ctx.author.id)] = {}
money[str(ctx.author.id)]['Money'] = 0
money[str(ctx.author.id)]['Money'] += 1
with open('economy.json', 'w') as f:
json.dump(money, f)
await Bot.process_commands(ctx)
omg! it works! thx you so much!
Не за что
пон
@woeful bramble
Скажи пожалуйста, почему бот морозит ответы а не добавление значения (отмена фарма)
@Bot.event
async def on_message(ctx):
with open('economy.json', 'r') as f:
money = json.load(f)
if not str(ctx.author.id) in queuer:
if not str(ctx.author.id) in money:
money[str(ctx.author.id)] = {}
money[str(ctx.author.id)]['Money'] = 0
money[str(ctx.author.id)]['Money'] += 0.5
queuer.append(str(ctx.author.id))
with open('economy.json', 'w') as f:
json.dump(money, f)
await asyncio.sleep(10)
queuer.remove(str(ctx.author.id))
await Bot.process_commands(ctx)
потому что в асинке спит после добавления (json.dump())
ага
понял, спасибо
даже поменяв местами, все равно спит, даже если другие команды бота юзать
ща
@late agate, can I see?
Ah right.
Are you using PyCharm?
Oh right.
Because PyCharm has a 'code with me' feature, which allows two people to see and edit the same code remotely.
can i ask a question of python from you guys
@fiery prawn what do u need?
I need help related to celery. Is this the proper channel for this?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i would like that
@buoyant kestrel Can we please have temp voice for @primal bison ?
ok
ok
i havent been on this server for more than 3 day
so im trying to make my python project an exe but im coming into some trouble when im try to put it on a flash drive and use it on a different computer it says its a trojan virus
funny?
hahahaha
ok ok i see so im making software for a small computer to run servos and stepper motors so i probably need to make sure i can just use it on that computer
im sure ill figure it out
ig so thanks for your time
pog
see ya
💋
Shit, sorry I just saw this
Hey, sorry @primal bison, I don't think we grant exceptions to the voice-gate.
But you can type out your question here (or in a help channel) and we will help you with it 🙂
As neither of us can speak, should we head over to your help channel?
here is fine
ok
Then others who see the channel can join in to help 👍
@oak slate Thought I'd swing by to ask if you were needing assistance, or if you were just hanging out.
Okay, well, I haven't heard back from you, but I'll be around. 🙂
Hello, @dull shadow. Are you in need of any assistance at this time?
Nope just hanging around, thx~
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hi
I have a requirement where I need to get a lot of manipulation done on google sheets
My company isnt okay with me using vscode and everything is to be online
so google colab fits this reqirement
stuff is being done manually
which makes my head hurt
can you point me in the direction of getting a full end to end workflow on google colab and google sheets
I have worked with pandas json crawling and mining
theres not a lot of documentation on it
thats why
okay
yea they are document savvy but somehow this is missing
colab is more towards ml and tensorflow
no one has a weird requiremnt as i do
I only deal with data manipulation
validation
cool okay
thanks mate
no issues
pls get the mods to create a sensible way to get access on the voice channel
Its confusing
makes sense
thanks mate
np~ does this help?
Hi guys, I have problem with code, I need make alhoritm on Python:
Make tabulate function y = x
[a,b]
On section a from b
I know I need do
a = int(input())
b = int(input())
And don't know what to do next, any ideas?
def number_word1converter(x):
number = f"{x}"
y = len(number)
# LISTS
digits = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
teenline = ["ten", "eleven", "twelwe", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen","nineteen"]
tenline = ["twenty", "thirty", "fourty", "fifty", "sixty", "seventy", "eighty", "ninety"]
symbols = [" Thousand ", " Million ", " Billion ", " Trillion "]
if y > 0:
digit1 = digits[int(number[-1])]
if int(number[-1]) > 0:
digit2 = digit1
else:
digit2 = ""
if y > 1:
if int(number[-2]) == 1:
tens1 = teenline[int(number[-1])]
elif int(number[-2]) == 0:
tens1 = digit2
else:
tens1 = tenline[int(number[-2]) - 2] + " " + digit2
if y > 2:
hundreds1 = digits[int(number[-3])] + " hundred "
if int(number[-3]) > 0:
hundreds2 = hundreds1
else:
hundreds2 = ""
if y == 1:
print(digit1.title())
if y == 2:
print(tens1.title())
if y == 3:
print((hundreds2 + tens1).title())
x=1000
list1 = []
n=f"{x}"
y=len(n)
if y%3==2:
n="0"+n
elif y%3==1:
n="00"+n
#001 000
for i in range(0, len(n), 3):
b=f"{n[i:i + 3]}"
while b[0]=="0":
if b=="000":
b="0"
b=b.lstrip("0")
list1+=b
for i in list1:
if i == None:
print(" ")
if ```
l1 = [1,23,312]
lenl1 = len(l1)
if lenl1 == 0:
print(" ")
else:
print(l1[lenl1-1])
any of u familiar with PyQt5 ui designing?
Only vaguely. The folks in #user-interfaces will be better able to help
if any(np.array_equal(palletcolor, x) for x in colors):
def getcolors(palletarea):
image = get_screen(palletarea);
colors = np.empty((0,3),dtype=np.int16)
places = []
pickheight,pickwidth = dimentions(palletarea)
for i in range(pickheight):
for j in range(pickwidth):
screenPoint = (palletarea[0][0]+j,palletarea[0][1]+i)
palletcolor = [image[i][j]]
if any(np.array_equal(palletcolor, x) for x in colors):
colors = np.append(colors,palletcolor,axis = 0)
places.append(screenPoint)
return colors,places
def isWhite(color):
distance = sqrt((255 - color[0])**2 + (255 - color[1])**2 + (255 - color[2])**2)
return distance < 60
def getDistance(collor1,collor2):
c1b, c1g, c1r = collor1
c2b, c2g, c2r = collor2
return sqrt(abs(c2r - c1r)**2 + abs(c2g - c1g)**2 + abs(c2b - c1b)**2)```
I need some help, I have claimed #help-ramen
Please have a look if you are free, I think it is something stupid that I haven't included in my code.
Can someone help me deploy my django project to heroku?
Back in a sec, work
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
!eval
x = True
print(f"something: {'its true' if x else 'its not true'}")```
@warm hedge :white_check_mark: Your eval job has completed with return code 0.
something: its true
!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.
while len(str(ISBN)) != 13:
while True:
# print text for main menu loop
inp = input()
if inp == "1":
pass # do the 1
if inp == "2":
pass # do the 2
if inp == "3":
pass # do the 3
if inp == "4":
pass # do the 4
if inp == "5":
pass # do the 5
else:
pass # return to main menu or break.
I think I will hop out now, hope I solved your previous issues
global q
with open("output.txt", "w") as f:
if q == 1:
f.write("1")
elif q == 2:
f.write("2")
...
do not forget to call the output() function from main().
meaning:
def main():
# run functions you need
output()
what issue is this ?
for p in dico["features"]:
code = p["properties"]["cca2"].upper()
if code in mesCodes :
pays = dicoCode[code]
zones = p["geometry"]["coordinates"]
print(zones)
for poly in zones :
for liste in poly :
coord = [coor_wgs84_to_web_mercator(c[0], c[1]) for c in liste]
coordx.append([c[0] for c in coord])
coordy.append([c[1] for c in coord])
nom.append(pays)
```
coord = [coor_wgs84_to_web_mercator(c[0], c[1]) for c in liste]
File "C:\Users\Zakaria\OneDrive - Université de Rennes 1\Bureau\mes cours S2\visu\visu\TD5\cours5_3.py", line 92, in <listcomp>
coord = [coor_wgs84_to_web_mercator(c[0], c[1]) for c in liste]
TypeError: 'float' object is not subscriptable
k = 6378137
x = (lon) * (k * np.pi/180.0)
y = np.log(np.tan((90 + (lat))* np.pi/360.0)) * k
return (x,y)
need help please I had trouble all day with this

@warm hedge Plz help us with our code
notice me please 
sup
!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* (pronounced "A-star") is a graph traversal and path search algorithm, which is often used in many fields of computer science due to its completeness, optimality, and optimal efficiency. One major practical drawback is its
O
(
b
d
)
...
Usually the easiest is Dijkstra Shortest Path Algorithm
you need to have your data in form of Graph
with nodes/edges to run it
Essentially do you wish for zombie just walking into direction of player
regardless of present walls?
I think I just lack understanding how your map data organized
and which zombie behavior you expect to achieve
import os
files = os.listdir(path)
php_files = [_ for _ in files if _[-4:] == ".php"]
from pathlib import Path
start_path = Path('startfolder')
php_files = [*start_path.iterdir('**/*.php')]```
ziura
Aworu
import random
x = int(input())
vowel = ["a", "e", "i", "o", "u"]
conso = ['B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'V', 'W', 'X', 'Y', 'Z']
choose_list = ["vowel", "conso"]
name = ""
vowel_time = 0
conso_time = 0
for i in range(x-3):
str_1 = random.choice(choose_list)
if vowel_time == 2:
str_1 = "conso"
elif conso_time == 1:
str_1 = "vowel"
if str_1 == "vowel":
vowel_time += 1
conso_time = 0
addable_val = random.choice(vowel)
elif str_1 == "conso":
addable_val = random.choice(conso)
conso_time += 1
vowel_time = 0
name += addable_val
syb_list = ["ura", "mon", "oru", "ret"]
name += random.choice(syb_list)
print(name.lower())
import random
alpha = 2
beta = 2
with open('./cheeses.txt', 'r') as file:
cheeses = file.read().splitlines()
ends = [each[-beta:] for each in cheeses]
data = {}
for cheese in cheeses:
for i,v in enumerate(cheese):
try:
alpha_string = cheese[i:i+alpha]
beta_string = cheese[i+alpha:i+alpha+beta]
if alpha_string not in data:
data[alpha_string] = {}
elif beta_string not in data[alpha_string]:
data[alpha_string][beta_string] = 1
else:
data[alpha_string][beta_string] += 1
except IndexError:
break
starters = [each for each in data if each[0].isupper()]
def invent_cheese():
while True:
cheese = random.choice(starters)
while True:
alpha_string = cheese[-2:]
candidates = []
for candidate in data[alpha_string]:
for i in range(data[alpha_string][candidate]):
candidates.append(candidate)
if len(candidates) == 0:
break
choice = random.choice(candidates)
cheese += choice
if cheese[-2:] in ends:
if random.uniform(0,1) < .1:
break
cheese = cheese.replace('(','').replace(')','')
if len(cheese) in range(4, 18):
break
return cheese
output = '\n'.join([invent_cheese() for i in range(30)])
print(output) ```
This code is not robust and is a little buggy.
But I have used it to do this sort of thing, given cheese names.
Dunbery Stronnes
Sardalet Cenalan
Wens
Hushirene
Royalp Tau
Yarre a l'Aubbe
Dieur deddanchees
Dieuilla Feuille
Striege Druffe
Bano
Neuffalotte Gex
Estraliano Richk
Anne
La Valleno
Yarra l'Autu
Fermignollette
Raclet Ber j
Yarre-V
Style Ageddano
Austeriche
Kadc
Coldt Fouries
Meyeng Che
Buch
Aveynierit
Gueratyrintalette
Serreg
Adoberda
L'Ec```
да
@main root
I'm looking, I'm looking
cool
Wasn't sure. You might have had your face buried in code elsewhere. 😏
юас
I have two monitors 🙂
now i cant join the channel cause its full
@main root did u post the question on stackoverflow?
if so, dm me the link and i will upvote it
no, because I would have to make an account
Alright 😄
Erm, so what does the betuvalasztas_sulyozottan function do exactly? What does it take as input, and what does it output?
Oh, you did, but I just went with the original name sorry 😄
What are each of the arguments?
Like, their types and what they represent.
If the problem is with a specific function, you really want to narrow in on that function when debugging (rather than run the whole program).
Mhm
Right.
So the error is definitely in choosing_letter_weighted
It's returning '' when it shouldn't?
I think I see what the issue could be...
Did you learn another language before Python, by any chance?
Oh right.
Erm, so this line: ```py
f_letter = ''
I think if you delete that line you should get an exception.
choosing_letter_weighted just returns a single letter right?
It generally isn't necessary to declare variables in python.
Ah right. So that line was obscuring the error.
The problem is probably that neither the if nor the elif clauses are run.
So f_letter never gets a value.
But because you set its value to '', you didn't get an error.
Erm, I'm not 100% sure either.
So what does this function do exactly?
Ah right. So the goal is to generate a word that doesn't have more that two vowels or consonants in a row?
Hmm 🤔
Ah right 😄
Alright. There are some important principles you can use to both prevent bugs from occurring in your code and to find them if they do.
Have you heard of DRY?
Erm, so it stands for "don't repeat yourself".
See how in the choosing_letter_weighted function there are two blocks of code with a very similar structure.
You might be able to simplify that to avoid repetition.
Here's what I'm thinking: you could first decide whether you are choosing a vowel or a consonant, and then choose the letter.
I.e. these are two separate tasks, if you separate the logic for them you could make it simpler.
if f_word[f_i-1] in f_vowel_list:
last = 'vowel'
else:
last = 'consonant'
if f_word[f_i-2] in f_vowel_list:
second_last = 'vowel'
else:
second_last = 'consonant'
...
Then you might do: ```py
if last != second_last:
letter_type = random.choices(types, weights=types_weights)
elif last == 'consonant':
letter_type = 'vowel'
else:
letter_type = 'consonant'
Then finally, ```py
if letter_type == 'vowel':
return random.choice(f_vowel_list)
else:
return random.choices(f_conso_list[0], weights=f_conso_list[1])[0]
I wrote this out just to illustrate what I mean about separating the logic of different tasks.
As a rule-of-thumb, flatter code (code with fewer levels of indentation) tends to be better... I'm not 100% sure why 😄
Hmm, I think there's a slight issue with the logic there...
Instead of doing py if x: if y: ... else: ... I think you meant to do ```py
if x and y:
...
else:
...
Do you see what I mean?
Sorry if I'm throwing a lot at you at once.
Ah right ok
This actually reduces it to three cases.
If you think about it, if the types differ (one is a vowel and the other is a consonant), then it doesn't matter which is which.
So those two cases can be combined into one.
Oh, I mean it doesn't make a difference whether the word is ax or xa
Not sure if I explained that very well sorry.
abcax and abcxa are the same case.
Only if the types of the last two letters are equal do you need to know if they are vowels or consonants.
For reference, this is my version of the function in its entirety: ```py
if f_word[f_i-1] in f_vowel_list:
last = 'vowel'
else:
last = 'consonant'
if f_word[f_i-2] in f_vowel_list:
second_last = 'vowel'
else:
second_last = 'consonant'
if last != second_last:
letter_type = random.choices(types, weights=types_weights)
elif last == 'consonant':
letter_type = 'vowel'
else:
letter_type = 'consonant'
if letter_type == 'vowel':
return random.choice(f_vowel_list)
else:
return random.choices(f_conso_list[0], weights=f_conso_list[1])[0]
Feel free to use it if you want to 👍
It may still have bugs 😄
Did that work?
You could add in an additional check to make sure that the set of vowels and consonants cover all the possible letters.
So I'm not sure if my checking works
I haven't run it yet
How it should work is in line 105 the comment
Ah right. So the checking function does all the work here?
Erm, you just want to repeatedly generate words until checking(word, voweldb, consodb, vowels) returns True?
Ah right.
It might help to first move the code that generates the word into a function.
Erm, just into a new function like ```py
def generate_word(length, vowels, consonants, consonant_weights, weighted=False):
...
Yep, from word = [].
Just all the code that generates a word.
Ah right.
You could have a prefix argument.
I mean, it would be quite a lot of arguments but...
a what?
def generate_word(prefix, length, vowels, consonants, consonant_weights, weighted=False):
...
okay, and what would that do?
Then you pass in generate_word('ab', 10, ...)
To generate a 10 letter word starting with ab.
- all the other arguments instead of
...
?
'prefix' just means the start of a word.
okay
You said that you're manually selecting the word prefix?
yes
I mean it generates
but the order matters
well, the first letter is what matters most
from there it's the same, in all ot them
oh wait
Erm, gtg for a bit to have dinner.
okay
Do you think you're on a good footing to continue from here?
ohm...
I still don't know how to escape the infinite loop problem
And I need that checking, otherwise the words gonna be not pretty gibberish
Erm, so two tips:
- Use the
breakkeyword instead of thedb != 0flag that you're currently using. - Write some tests for the
checkingfunction to make sure that it works properly.
A simple way to write tests is to do something like this:
def test_checking():
vowels = ['a', 'e', 'i', 'o', 'u']
assert checking('aabb', 2, 2, vowels) == True
assert checking('aabb', 1, 3, vowels) == False
assert checking('a', 1, 0, vowels) == True
... # etc.
test_checking()
Ah right.
So you can break out of a loop immediately with break.
while True:
x = input()
if x == 'exit':
break
for example.
Oh, so you want to count the number of words generated?
Not sure I understand.
Oh, I see.
Sorry, I thought you were using db as a flag to break out of the loop.
Hmm, it's either that invalid words are always being generated or that the checking function is wrong.
Writing test cases would be the way to go in either case I think.
I really have to go now sorry!
Good luck with the rest of your project!
👋
thank you, and thank you for your help
i am new so dont laugh at me but i have a html website and i want to make it a real website so ican share it some1 help
hey
using javascript?
may i ask how to make a command that pastes a file in a chat on discord
hi
How can I login to this page with requests session: https://www.digilugu.ee/login?locale=en , I have tried so many things, but nothing seems to work.
helo
Hi is there anybody here to help?
ye?
Yeah hi I need help with my code with output you think you hop on vc?
i can join the vc but i can't talk :<
hello
so u trying to convert denary to binary?
show the output part
actually,
i gtg
sry
when the menu starts again its needs a space
oh, do smth like:
print("\n*** Menu ***")
\n = new line
hi guys, could someone help me make the adidas logo?
yes
for school
yes, our professor gave it to us as an assignment
Can you show the prompt they gave you?
Like what all it needs to do, what libraries it should use, etc.
the prompt
We won't do it for you, but we can at least guide you in the right direction
he gave us the picture of the logo with the measurements, but we can't find the file
plsss help me
It's hard to without more context
these are the measures
yes bro
Why are you bulling me
If you don't have anything helpful to say, don't say it. If people want help, then ideally we don't sass them.
@daring escarp What libraries are they wanting you to use? Turtle or something?
Turtle
What have you tried thus far
@buoyant kestrel
this is one of big company in my country
Huh, I'll be damned
😄
I tryed to do the initial base but it's incorrect
I need more information. What errors is it giving you, what is it doing vs what you're expecting it to do, can you show your current code, etc.
The more information you have, the easier it becomes to help
i need infos
Is it possible to find a solution for this using python?
i dont think theres a way to solve this in the first place
someone sent an explanation
check the vc chats
exactly yea
yes
hi
how can I turn off the microphone
oh
i guess i have to be on this server for 3 days in order to speak
honestly that guy was rude
yea idc tbh
but i came on the voice chat because i need help with a python project
since i cannot speak i will type it on here
Hey @fleet ether!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
send it in dms
okay
thanks... someone told me that if maybe i changed the thirty to 29 then possibly it would work
py -m pip install -U pip
py -m pip install -U setuptools
py -m pip install -U wheel
try running these, one after the other
you have reinstalled using the proper python installer, right?
@turbid totem
@odd roost https://regexone.com/
RegexOne provides a set of interactive lessons and exercises to help you learn regular expressions
I like this one,.
I went through it all.
thank you bro
sdsd
0_0
hey boys i have that list, and i need to print all the sub lists to a one bigger list, the issue its i cant use loops or functions.
l = [["name", "dinner"], ["Abraham", "Avi"], ["Hello", "Tree", "Door"], ["Name", "Glass", "Two", "am"]]
lambda its fine
i try to command like that print(*l) but the delete just one parenthesis
yep
just list of the
that*
hahahaha
that annoying
Okay. So here's a stupid way.
print(*x,sep=' ') try that but again that delete just one parenthesis
output = ['name', 'dinner'] ['Abraham', 'Avi'] ['Hello', 'Tree', 'Door'] ['Name', 'Glass', 'Two', 'am']
just a sec
that is the task
Write a python script which takes the following list as an input:
l = [["name", "dinner"], ["Abraham", "Avi"], ["Hello", "Tree", "Door"], ["Name", "Glass", "Two", "am"]]
- Unify all the sub lists to a one bigger list.
and the note was You are not allowed to use: for loop, while loop and functions (def) in any of the exercises! lambda is allowed.
a = ['apple', 'sauce']
assert a[0] == 'apple'```
can u explain again about assert?
when i try to using that i get AssertionError
yea yea i know
list1 = [["name", "dinner"], ["Abraham", "Avi"], ["Hello", "Tree", "Door"], ["Name", "Glass", "Two", "am"]]
line = str(list1).replace('[', '').replace(']', '').replace("'", '')
line = line.split(', ')
print(line)
!e py a = ['apple', 'sauce'] print(a[0])
@night lily :white_check_mark: Your eval job has completed with return code 0.
apple
!e
a = [0,1] + [2,3]
print(a)```
@night lily :white_check_mark: Your eval job has completed with return code 0.
[0, 1, 2, 3]
yo @boreal wing i think its work
list1 = [["name", "dinner"], ["Abraham", "Avi"], ["Hello", "Tree", "Door"], ["Name", "Glass", "Two", "am"]]
final = list1[0]+ list1[1]+ list1[2]+ list1[3]
print(final)
guys i think its fine like that
i have 2 more tasks
remove all the duplicates from the bigger list.
set
!e py my_list = [6, 6, 3, 1, 0 ,0, 0] my_set = set(my_list) print(my_set)
@night lily :white_check_mark: Your eval job has completed with return code 0.
{0, 1, 3, 6}
list(my_set)```
ok im trying that
Or, if you wanted to be a fancypants, py [*my_set]
if that my code
l = [["name", "dinner"], ["Abraham", "Avi"], ["Hello", "Tree", "Door"], ["Name", "Glass", "Two", "am"]]
final = l[0]+ l[1]+ l[2]+ l[3]
my_set = set(final)
print(my_set)
{'Door', 'am', 'Tree', 'dinner', 'Abraham', 'Avi', 'Hello', 'Name', 'Glass', 'Two', 'name'}
idk
the order its not metter
the issue its remove all the duplicates from the bigger list.
For sorting, you can use sorted.
Inventive use of sorted's key parameter and a lambda which employs list's index method can help recreate the order of the list.
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
Print all the strings that have more than two characters in the middle of them.
@night lily :white_check_mark: Your eval job has completed with return code 0.
5
yea but len its a func...
i think i cant use it
😆
yea its basic
what is that?
def my_func():
...
class MyClass:
def my_method(self):
...```
hahah dude its like cheating
idk if its fine
hahahaha
im gonna use len
fk them
!e py print('apple'.upper())
@night lily :white_check_mark: Your eval job has completed with return code 0.
APPLE
!e py print('apple'.__len__())
@night lily :white_check_mark: Your eval job has completed with return code 0.
5
hahaahahah
hahahaha
can u show me how to do it with len?
all the issue im not developer im devops so really bad at code
how i do that Print all the strings that have more than two characters in the middle of them
filter its a pure funcation
filter
print(len(filter(my_set)) smoething like that?
that looks so broken 🙂
print(len(filter(my_set,2))
like that?
[*filter(lambda each: ......
ok i got it
opal
thanks man
really big thanks
❤️
i send me error
but i undersand 2wghat i need to do
again thanks man
god bless u
Hello OwO
helo
ola @graceful elk
how u doing
trying to learn setup code
Ooo, good luck
your help would be useful
How do you mean setup code?
yeah
what does setuptools do?
thanks 🙂
triangles = []
for triangle in self.triangles:
avgZ = -(self.points[triangle[0]][2] + self.points[triangle[1]][2] + self.points[triangle[2]][2]) / 3
triangles.append((coords[triangle[0]], coords[triangle[1]], coords[triangle[2]], avgZ))
triangles = sorted(triangles,key=lambda x: x[3])
def render(self, color='white'):
coords = []
triangles = []
for point in self.points:
coords.append(self.flattenPoint(point))
for triangle in self.triangles:
avgZ = -(self.points[triangle[0]][2] + self.points[triangle[1]][2] + self.points[triangle[2]][2]) / 3
triangles.append((coords[triangle[0]], coords[triangle[1]], coords[triangle[2]], avgZ))
triangles = sorted(triangles, key=lambda x: x[3])
for triangle in triangles:
self.createTriangle(triangle, color)
def createTriangle(self, points, color):
a, b, c = points[0], points[1], points[2]
coords = [a[0], a[1], b[0], b[1], c[0], c[1]]
self.shapes.append(self.image.create_polygon(coords, fill=color, outline="black"))
def rotateY(self, angle):
angle = angle / 450 * 180 / math.pi
sqrt2 = math.sqrt(2)
for i, point in enumerate(self.points):
newX = point[0] * math.cos(angle) - point[2] * math.sin(angle)
newY = point[1]
newZ = point[2] * math.cos(angle) + point[0] * math.sin(angle)
self.points[i] = (newX, newY, newZ)
test = graphics.Engine3D(points, triangles, scale=100)
test.rotateY(45)
test.render()
test = graphics.Engine3D(points, triangles, scale=100)
def animation():
test.image.delete('all')
test.rotateY(0.1)
test.render('gray')
test.window.after(1, animation)
animation()
whats wrong help me pls
glengarriff_info = glengarriff.splitlines()
!stream 438985531800551426
@heavy umbra
✅ @heavy umbra can now stream.
glengarriff_info = [line.strip().split(',') for line in glengarriff]
glengarriff_info = []
for line in glengarriff:
glengarriff_info.append(line.split(','))
Red = iterable (i.e. a list)
Blue = Variable for each element
Green = Assignment for new element
!e
my_num = 34322 / 60
print(my_num)
my_num = round(my_num, 4)
print(my_num)
my_num = round(my_num, 2)
print(my_num)
@wide aurora :white_check_mark: Your eval job has completed with return code 0.
001 | 572.0333333333333
002 | 572.0333
003 | 572.03
!stream @heavy umbra 5M
@heavy umbra
✅ @heavy umbra can now stream.
thanks for everyones help
@austere crag I suggest asking in #web-development, or claiming a help channel (see #❓|how-to-get-help for instructions on how to claim a channel)
and is really useful when you write python packages
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
when did you join the server
a while back but I am inactive
@sinful onyx See #bot-commands to find out when I joined
Hey , I need help with my app , can anyone help ?
yeah what up?
ye?
how to find a value in database , using python . I mean isnt there search code or something?
what kind of database r u talking about?
like sql, or json or mongo
I dont think i can
i need a code or function to find for example information that I made in database.
hmm
idk postgress sry xddd
ok , thanks anyway .
np .
Hello
class Menu(tk.Frame):
def __init__(self, app, *args, **kwargs):
super().__init__(app.root, *args, **kwargs)
self.app = app
self.setupui()
def setupui(self):
pass
class testmenu(Menu):
def setupui(self):
frame = tk.Frame(self)
label = tk.Label(frame,text=self.config['task'])
label.pack()
class MainWindow():
def __init__(self):
self.root = tk.Tk()
self.root.resizable(False, False)
self.config = {
'test': 'task'
}
self.menus = (testmenu(self))
self.menus.grid(sticky='nesw')
self.active_menu = 0
if __name__ == "__main__": #Kickstarts the file
MainWindow().root.mainloop()
class testwindow():
def window():
print(self.config['test'])
class MainWindow():
def __init__(self):
self.config = {'test': 'task'}
testwindow.window()
MainWindow()
!e
config = {"Test": "Task"}
print(config["Test"])
@wide aurora :white_check_mark: Your eval job has completed with return code 0.
Task
!e
class TestWindow:
def __init__(self, config):
self.config = config
def window(self):
print(self.config['test'])
class MainWindow:
def __init__(self):
self.config = {'test': 'task'}
self.test_window = TestWindow(self.config)
self.test_window.window()
MainWindow()
@wide aurora :white_check_mark: Your eval job has completed with return code 0.
task
!e
class Example:
class_var = 5
def __init__(self):
self.instance_var = 7
print(Example.class_var)
my_instance = Example()
print(my_instance.instance_var)
print(my_instance.class_var)
print(Example.instance_var)
@wide aurora :x: Your eval job has completed with return code 1.
001 | 5
002 | 7
003 | 5
004 | Traceback (most recent call last):
005 | File "<string>", line 15, in <module>
006 | AttributeError: type object 'Example' has no attribute 'instance_var'
class Menu(tk.Frame):
def __init__(self, app, *args, **kwargs):
super().__init__(app.root, *args, **kwargs)
self.app = app
self.setupui()
def setupui(self):
pass
class TestWindow(Menu):
def __init__(self, config):
self.config = config
def window(self):
#this part is looking for tk
frame = tk.Frame(self)
label = tk.Label(frame,text=self.config['test'])
label.pack()
class MainWindow():
def __init__(self):
self.root = tk.Tk()
self.root.resizable(False, False)
self.config = {'test': 'task'}
self.test_window = TestWindow(self.config)
# This part isnt passing tk on
self.test_window.window()
if __name__ == "__main__": #Kickstarts the file
MainWindow().root.mainloop()
C:\Users\Antonio Mafera\Desktop\a plus a>py -3.9 -i main.py
Traceback (most recent call last):
File "C:\Users\Antonio Mafera\Desktop\a plus a\main.py", line 105, in <module>
MainWindow().root.mainloop()
File "C:\Users\Antonio Mafera\Desktop\a plus a\main.py", line 100, in init
self.test_window.window()
File "C:\Users\Antonio Mafera\Desktop\a plus a\main.py", line 89, in window
frame = tk.Frame(self)
File "C:\Users\Antonio Mafera\AppData\Local\Programs\Python\Python39\lib\tkinter_init_.py", line 3124, in init
Widget.init(self, master, 'frame', cnf, {}, extra)
File "C:\Users\Antonio Mafera\AppData\Local\Programs\Python\Python39\lib\tkinter_init_.py", line 2566, in init
BaseWidget.setup(self, master, cnf)
File "C:\Users\Antonio Mafera\AppData\Local\Programs\Python\Python39\lib\tkinter_init.py", line 2535, in _setup
self.tk = master.tk
AttributeError: 'TestWindow' object has no attribute 'tk'
def window(self, parent):
#this part is looking for tk
frame = tk.Frame(parent)
label = tk.Label(frame, text=self.config['test'])
label.pack()
https://open.spotify.com/track/7bhI6rnvaVw8qgZPn32qE0?si=GtroXCCfQiyYB49sxdAhSw&utm_source=copy-link
@shadow ivy
https://open.spotify.com/track/1CGfdiuxAVIyUpOYDXcUys?si=e5xofrthTu-ybQTP3bZYXQ&utm_source=copy-link
This one :(
Tell me what you think @shadow ivy
import tkinter as tk
class Menu(tk.Frame):
def __init__(self, app, *args, **kwargs):
super().__init__(app.root, *args, **kwargs)
self.app = app
self.setupui()
def setupui(self):
pass
class TestWindow(Menu):
def __init__(self, config):
self.config = config
def window(self, parent):
frame = tk.Frame(parent)
print(self.config['test'])
label = tk.Label(master=frame,text="asdf") #this is not displaying when the window runs
label.pack()
class MainWindow():
def __init__(self):
self.root = tk.Tk()
self.root.resizable(False, False)
self.config = {'test': 'task'}
self.test_window = TestWindow(self.config)
self.test_window.window(self.root)
if __name__ == "__main__": #Kickstarts the file
MainWindow().root.mainloop()
I would recommend subclassing the class tk.Tk
Hey I am new to coding
Would you recommend some app for me where I can learn python
Did you listen to it @shadow ivy
yes i was listening along earlier
did you like it @shadow ivy
only peoples with privilegjes cn
while i<100:
zahl=input("Cklick a buuton")
i=i+1
print("you cklicked the Enter-
button",i,"Times")```
that is a cklick counter
for the people that doesnt know this
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
Hey dudes I need help with my django Crud project Im having trouble with having multiple tables or forms for my database anyone their to spare some time?
I mean you're also in here
I just reached 50 messages. I mean after this message.
@buoyant kestrel Hey the vc verify still doesn't work.
You have to have been here for 3 days
hey i need some help regarding web scrapping
hey, I've just built my first flask restful api and i get a bad request even using CORS, I've tried using @cross_origin but couldn't make my react app to interect with it. Does anyone have an idea?
i know
@sturdy geyser can you send me the link of the youtuber that teaches u about python?
@unreal eagle hello
Hello guys.
Please I need assistance with my project. I'm working with Django framework but noticed my CSS isn't loading even whilst I've added the load static tag. Kindly help out. Thanks
xd
Voice Chat 0
can someone help me out with pygame 😭
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
Hi, i get an error message saying this on python and i'm using Segmind. I am trying to load load the dataset.:
<ipython-input-47-e6475e144872> in <module>
4 for fol in range(0,2):
5 if fol == 0:
----> 6 pneumonia_images = os.listdir(folders[fol])
7 pneumonia_labels = [1] * len(pneumonia_images)
8 else:
FileNotFoundError: [Errno 2] No such file or directory: '/Pneumonia/dataset/pneumonia_dataset/train/pneumonia'```
This is my code that i am working on below: ```folders = ['/Pneumonia/dataset/pneumonia_dataset/train/pneumonia',
'/Pneumonia/dataset/pneumonia_dataset/train/normal']
for fol in range(0,2):
if fol == 0:
pneumonia_images = os.listdir(folders[fol])
pneumonia_labels = [1] * len(pneumonia_images)
else:
normal_images = os.listdir(folders[fol])
normal_labels = [0] * len(normal_images)```
Thanks for any help!
@sterile gust , is your Pneumonia dataset on the root of your file system? I'd guess that they are relative to your python script.
Try dropping the / at the beginning of your path names.
can anyone suggest me how to solve a sudoku without using recursion..The empty spaces are indicated by 0
Keep a list you add jobs to as you process off the end of it.
if anyone wants to help me I'm working on this assignment:
10.2 Write a program to read through the mbox-short.txt and figure out the distribution by hour of the day for each of the messages. You can pull the hour out from the 'From ' line by finding the time and then splitting the string a second time using a colon.
From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008
Once you have accumulated the counts for each hour, print out the counts, sorted by hour as shown below.
Here is my code so far
name = input("Enter file:")
if len(name) < 1 : name = "mbox-short.txt"
handle = open(name)
counts = dict()
lst=[]
for line in handle:
if line.startswith('From'):
lst.append(line.rstrip())
for line in lst:
words = line.split()[5]
words = words.split(":")[0]
for word in words:
counts[words]=counts.get(word, 0) +1
lst2 = []
for k,v in counts:
lst2.append(k,v)
print(lst2.sorted())
I get a traceback on line 14 saying my index is out of range
We dont have permissions
Not like you? hehe, that would be weird
to not like someone who you don't know
You need help with what?
It depends on the strategy.
What's your strategy?
Who's coding a trading bot though?
what channel?
This is the problem
#WITH USE OF IF ELSE STATEMENT
m=[]
n=int(input())
for i in range(n):
imputs = input().split()
if len(imputs)==3:
operation,*num = imputs
i,e=list(map(int,num))
if operation=="insert":
m.insert(i,e)
elif len(imputs)==2:
operation,num= imputs
i=int(num)
if operation=="remove":
m.remove(i)
elif operation=="append":
m.append(i)
elif len(imputs)==1:
if imputs=="sort":
m.sort()
elif imputs =="pop":
m.pop()
elif imputs=="reverse":
m.reverse()
elif imputs=="print":
print (m)
here is my solution.. can anyone check what's wrong in my code?
+++
👍
10.2 Write a program to read through the mbox-short.txt and figure out the distribution by hour of the day for each of the messages. You can pull the hour out from the 'From ' line by finding the time and then splitting the string a second time using a colon.
From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008
Once you have accumulated the counts for each hour, print out the counts, sorted by hour as shown below.
name = input("Enter file:")
if len(name) < 1 : name = "mbox-short.txt"
handle = open(name)
counts = dict()
lst=[]
for line in handle:
if line.startswith('From') and ":" in line:
lst.append(line.rstrip())
print(lst)
else: continue
numbers =list(str(range(1,11)))
for line in lst:
if any numbers not in line:
line.remove(lst)
print(lst)
words =[]
for line in lst:
words.append(line.split()[5])
print(words)
for word in words:
words2.append(words.split(":")[0])
print(words2)
#for word in words2:
#counts[words]=counts.get(word, 0) +1
#lst2 = []
#for k,v in counts:
#lst2.append(k,v)
#print(lst2.sorted())
for x in numbers:
x = str(x)
hello i am under the water
!stream 510863751696613376
@quaint saffron
✅ @quaint saffron can now stream.
!stream 510863751696613376 15M
@quaint saffron
✅ @quaint saffron can now stream.
@buoyant kestrel To be honset must of these songs I am playing on these bots are free domain and require no license or rights
['index1', 'index2', ....]
hello guys
@royal mantle can you past the output of indexkeys
I just need to see the structure so I can help you.
you can PM if you feel better about that
for key in indexkeys:
print(key)
break
Elasticserver > Elasticindexes > index keys (_source is here) > _source.keys (The keys I need)
yeah I asked for the same too need to know structure
so the response of indexkeys is a list of keys correct?
can you stream what your looking at?
paste it then
if we had the whole structure we could help you with a generator function
Do you have the response?
These are the keys right?
yes
kk
these are the keys I need from each index
not these SPECIFICALLY, but the keys in general
I need the loop to loop over each index, and grab each collection of keys from each index
some indexes may need to be further drilled into
hes on a call
sorry, got pulled into a datalake meeting 😦
all good
I spun up an elastic instance. Does your json output look similar to this? https://dpaste.org/SKAc
yea it looks like that
Thats why grabbing _Source is important
some tables write their field key:value data into _Source
that's fine I just wanted to know the structure of your json output so I could help you write a generator function 🙂 give me just a bit.
What is the end result you want?
all of the keys from all of the indexes
so inside of your sample
you have _Source
and inside that you have loco_moco_account_id, authentication token, ciphertext, and hash
I want those keys
for each index
You want a dictionary format as the output?
I think it would look the best visually
oh ok, you just want to see the output for now right?
gotcha. 1 sec
let me know when your available again
going to make a coffee real quick.
meeting almost over -.0
@outer sparrow You still on?
@hybrid gust finishing up here soon, really sorry for the delays
the problem here the multiprocessing unit iterate through the same IP adress knowing that it exist more
@atomic phoenix
!e ```py
s = 'A4, '3
test = f"""
{s}
{s}
{s}
{s}
"""
print([e.strip() for e in test.replace(',','').split(',')], sep='\n')
@languid meteor :white_check_mark: Your eval job has completed with return code 0.
001 | A4
002 | A4
003 | A4
004 | A4
005 | A4
006 | A4
007 | A4
008 | A4
009 | A4
010 | A4
011 | A4
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/apudugoqih.txt?noredirect
@atomic phoenix regex = 🤯 , generator + str methods = 👍
how can, i speak on voice chat
7
i am using a api in india
yes
and its working fine when i am calling it from my pc
yes
403 access denied
is heroku blocking the apis ip address because its in india
the api is blocking heroku ips
you will have to ask the owner of the api to unblock heroku's ips
api is geo-locked to india only
well there you go
i an unable to use proxy
nope unless the proxy is inside india then no
ih
yo
help files with the annotation py do not open
@snow hornet need help?
Oh sorry, I forgot to leave the vc, I;m getting help in #help-pretzel . Thank you though! 🙂
mango
FastAPI framework, high performance, easy to learn, fast to code, ready for production
anyone trying to help me with some missing assignments in my python programming class im grade 10 and they're not that hard for people who know how to program its just i need help so i dont fail
!stream @shadow mauve 30M
@shadow mauve
✅ @shadow mauve can now stream.
@sour sentinel do you need help?
i uses python in rur-ple, and i don't know
how to do
ah
never mind
blahblah
sorry
bye
hello! I would like to get some help. 🙂
Im a beginner and would like to understand just how everything works. What things are and stuff like that. If anyone would like to please join code/help 1. Thank you! 🙂
.
guys i need hep with a python code
aboba
im tryna work on a tile system rn
and im having problems with pygame surfaces
it keeps cutting off at the middle of the screen
can anyone help me with something
@high charm
In this video, we'll discuss tilemaps. We'll learn how we can create them using Tiled, as well as how we can parse them into pygame.
Code can be found on my github: https://github.com/ChristianD37/YoutubeTutorials/tree/master/Tilemap
Download tiled: https://www.mapeditor.org/
Join my discord: https://discord.gg/qu8a7DfK2X
My video on sprite ...
Hey guys, anyone got five for a chat/review?
no
true
I would definitely give you mod.
Why I am invalid to talk?
n
thanks!
YW
why do I get the love?
helo
can I get some string manipulation help
can someone help me
f\
Hello @tender tangle
hi
so whats everyone up to
the top floor
Hello guys, i’m working on a algorithm and i’m stuck on one thing it’s about positioning inside a cube and i have function to go left right up down and there’s away to go outside ... so i’m stuck to say to the algorithm that there’s limits ... i can explain more in vocal if some one can help
hi how can i print a triangle with py```
s=["", "","", "","", ""]
for i in s:
s.pop()
print(s)
am a slow learner
Hello, im having trouble using py installer to make an exe file, I keep on getting fatal error detected even though I made sure t he exe file has all the dependencies with it, I tried installing it differently but nothing seems to work. I expect the exe to open without errors and run the program normally
damn you got some experience
I'm having this error: NameError: name 'self' is not defined
class MainThread(QThread):
def init(self):
super(MainThread,self).init()
Its kind of urgent, any help please?
The name of the constructor in Python is __init__, that's something I see right now.
Were you able to fix this?
This was the error message
My code was
class MainThread(QThread):
def __init__():
super(MainThread,self).__init__()
@primal bison Please don't try to ping @everyone or @here. Your message has been removed. If you believe this was a mistake, please let staff know!
mistake
Can anyone pls help me out
wassp
wassas
:incoming_envelope: :ok_hand: applied mute to @devout aurora until 2021-06-06 00:37 (9 minutes and 59 seconds) (reason: burst rule: sent 9 messages in 10s).
Can anyone help me solving this problem guys?
Find substrings containing an e-mail address
Task:
You are given a set of strings separated with line feed characters. Find the longest substrings that can be considered e-mail addresses.
An e-mail address consists of three parts: the name of the local part, an "@" character, the domain name of the server.
The local part name can contain latin letters, digits and underscore characters "_".
The server domain name consists of the name itself (digits, latin letters and dash symbols "-") and names of all other domain it belongs to, each separated with a period. The fully qualified domain name should not exceed 66 symbols.
In this task, we'll take the top-level domain as a string of latin letters from 2 to 4 (inclusively) characters long.
The local part name should be separated from the domain name with an "@" character.
Input:
A set of strings separated with line feed characters.
Output:
All the longest correct substrings in the order in which they appear in the text, separating each with a line feed character.
Example:
Input
a@b.cde
Va$ya123@shmail.ru
Output
a@b.cde
who is from yr9-11 and would be interested joining me in the web design competition
which ide is it ?
html
!e
print("me help")
@sturdy geyser :white_check_mark: Your eval job has completed with return code 0.
me help
@lean sentinel
jake coded me help
Glad I can help 👍
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
@fiery sigil :white_check_mark: Your eval job has completed with return code 0.
your mom

l need fucn perm'sson
HAHAHAHAHAHAHA
LETS GO
CAN L WT":":":"../>>>?//>>>...>>........,,,///'';;]][P[PPPPPPP[]';'/.,,,KAAN PE
LCAANT WR'TE /.,,';';][][][][[][][][][][[KAANA KUZEY OPER,'N EELLLO HELLOWOORLF
Not sure if this has been answered yet, but it turns a string to lower case. ("HI People" -> "hi people")
can anyone help me out with my query its on #help-cherries
not a musical group i guess
Hey
i wanted to know if learning kivy is worth it
or is there any alternative
??
@buoyant kestrel
can ya ask in vc?
ok
im nuted
whats the problem
um i need help with implementing a A* algo
ooo
im new to python and have biiten more than i can chew
hmm i see
ok how should i go about sharing my code
paste it