#voice-chat-text-0

1 messages · Page 737 of 1

uncut meteor
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

warped saffron
#

Youtube

wise glade
#

what is that python based hastebin link? anyone

uncut meteor
#

^ there are some helpful resources on here, how to get started etc

warped saffron
#

Always youtube 1st

uncut meteor
#

nah

manic shore
#

But what do i learn

uncut meteor
#

syntax

#

syntax first (defining variables and built in methods like print) -> functions -> further

manic shore
#

well i know a little python

#

yea i know syntax @uncut meteor

wind cobalt
#

books, i guess

warped saffron
#

Learn pseudocode

wind cobalt
#

automate the boring stuff

warped saffron
#

how to write code on paper

uncut meteor
#

if you want to challenge yourself and see where you are at, create a command line game like guess the number or someething

wind cobalt
manic shore
#

i should be able to make a guess the number ill do that now @uncut meteor

wind cobalt
#

George Takiyama said "Those who failed history ,has to repeat the subject"

wise glade
uncut meteor
#

if you know functions and how to use them, try to use them for it.

manic shore
#

alr

warped saffron
#

Build an A.I. supercomputer and try to hack into Edward Snowden's laptop

uncut meteor
#

if not, i'd learn them outside of a little project then apply them after some learnin

warped saffron
#

yes

olive siren
#

hi guy

olive siren
#

guys

wind cobalt
wise glade
#

German History, now who does it reminds me of

wind cobalt
olive siren
#

seem someone like the classical

wind cobalt
#

or that one guy who can't draw?

olive siren
#

Hi@all

wise glade
#

yeah, not A.Hit***

wise cargoBOT
#

Hey @warped saffron!

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:

https://paste.pythondiscord.com

uncut meteor
#

@wise glade

  File "C:\Users\prateek_parashar\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\templating.py", line 89, in _get_source_fast
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: index.hmtl

This is what i'm looking at

shut goblet
#

!projects

wise glade
#

index.hmtl 😂

wise cargoBOT
#

Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

uncut meteor
#

mhm, my thoughts exactly! thank you

wise glade
#

🥲 now works, thanks @uncut meteor

uncut meteor
#

np chief

olive siren
#

Does enyone use WSL2?

wise glade
#

me

olive siren
#

do you like it?

wise glade
#

idk how is it different from WSL1, I started it from WSL2

#

stuff works, I guess

#

there's cool custom themes for terminal

uncut meteor
#

if you are just asking about is it good, I can tell you a colleague of mine uses it and recommends it alot for coding setups.

warped saffron
#

#Opalmist

uncut meteor
#

if you need/want windows

wind cobalt
uncut meteor
#

lextroll

olive siren
#

I learn python

uncut meteor
whole bear
#

@warped saffron did you get the printer to work

uncut meteor
#

for learning Python, you won't need WSL2

olive siren
#

and it feels al little bit like fighting against windows os

warped saffron
#

yes

warped saffron
wind cobalt
#

@fierce summit I can count up to 3

whole bear
#

ayyyyyyyyyyyy what did you do

somber heath
#

@rugged root Bareskin Rug.

warped saffron
#

I beat it and threatened to sue it

uncut meteor
wind cobalt
#

1

#

2

#

3

#

i dont know what comes next

fierce summit
#

7**17

#

7**16

#

33 232 930 569 601

uncut meteor
#

Number big

wind cobalt
#

interesting hobby

#

number in head go brrr

wind cobalt
fierce summit
#

8**10=1073741824

wind cobalt
#

Zom-beh

uncut meteor
#

8 Times timees 10-en times tehn then

wind cobalt
#

as far as 10km

fierce summit
#

7**17 = 232 630 513 987 207

warped saffron
#

How convincing is interpretation D about Elizabeth I's approach to religion in the first 10 years of her reign (8 marks)

wind cobalt
#

what's D?

warped saffron
whole bear
#

What terminal emulator can you recommend?

wind cobalt
whole bear
#

I am using sakura

uncut meteor
#

for what device?

whole bear
#

Pc

#

Linux

uncut meteor
#

use terminal

whole bear
#

ok

uncut meteor
#

and get fish

#

imo

whole bear
#

Thanks for the help.

uncut meteor
#

fish -> Friendly i-something shell

#

idk if its interactive, i always forget the i

whole bear
#

Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish

uncut meteor
#

there you go

#

lit cuz

#

when I go back to bash on a ssh i start crying

whole bear
#

+++

#

I always use zsh exclusively on all my devices

uncut meteor
#

the one think I get annoyed with is that fish doesn't allow chaining commands with &&

#

thing*

#

whats zsh

#

give me a tldr;

warped saffron
#

Lextroll is convinced

whole bear
#

tldr?

wind cobalt
#

I'm convinced that elizabeth did the right thing

#

@warped saffron you kinda need to give some background info on what Ms Elizabeth did first

warped saffron
#

by executing and torturing Catholics

wind cobalt
#

only then you can approach the question

gentle flint
warped saffron
#

yes

wind cobalt
whole bear
#

k

wind cobalt
#

dunno, i've never been to England. heard that it was a nice city

gentle flint
#

yeah, like malaysia

#

nice city, huh

wind cobalt
#

yeah

warped saffron
#

humhumhum

gentle flint
#

I've heard it's Chinese nowadays

wind cobalt
#

"England was my city" as the song says

whole bear
#

How can I run fish with the terminal?

gentle flint
#

it should be England bridge is falling down

wind cobalt
#

very soon

uncut meteor
#

you can set a startup command in the settings

#

to auto put you in fish

whole bear
#

Yes

#

I did it

#

Next, I need to add it to startup

wind cobalt
#

your nose experienced a culture shock

gentle flint
#

no, no

feral sequoia
#

your brain probably got used to no taste

gentle flint
#

it experienced a smell shock

#

but first it experienced viral shock

wind cobalt
#

Asymptomatic

gentle flint
#

@rancid pelican can you give me a quick rundown on semiconductors
assuming that this is you
https://en.wikipedia.org/wiki/Mohamed_M._Atalla

Mohamed M. Atalla (Arabic: محمد عطاالله‎; August 4, 1924 – December 30, 2009) was an Egyptian-American engineer, physical chemist, cryptographer, inventor and entrepreneur. He was a semiconductor pioneer who made important contributions to modern electronics. He is best known for inventing the MOSFET (metal–oxide–semiconductor field-effect trans...

whole bear
#

@uncut meteor

#

ohhh

#

I wrote: chsh -s / bin / fish

#

And it worked!

plush willow
#

skribbl

whole bear
#

Thx

wind cobalt
#

pics

gentle flint
#

@plush willow post a link then

wind cobalt
#

for that icebox

hardy cipher
wind cobalt
#

imagine running

#

that's healthy

gentle flint
#

imagine imagining

weary zephyr
#

imagine imagining

#

bruhh

uncut meteor
#

Imagine all the people

gentle flint
#

PoE
Punches over Ethernet

rancid pelican
wind cobalt
gentle flint
#

o no

uncut meteor
#

living for today! aha-ah

gentle flint
#

how sad

wind cobalt
#

he's lying

#

sus

uncut meteor
#

Imagine there's no countries

whole bear
#

Is it possible to change the theme in fish?

uncut meteor
#

yes

whole bear
wind cobalt
#

Imagine no debugging

warped saffron
#

Imagine a brotherhood of man

uncut meteor
plush willow
warped saffron
#

Imaginnnnnnnnnnnne all the people

whole bear
#

Can you send it to me?

plush willow
#

who is snacc?

warped saffron
#

Imaginnnnnnnnnnnne no possessions

gentle flint
#

I'm your favourite snacc

wind cobalt
#

I'm imagining

gentle flint
#

UwU

wind cobalt
#

and that's communism

gentle flint
#

and I will leave if Krish and I are the only ones playing

#

anyone else?

untold rock
#

me

#

no no i am LS ADX

manic shore
#

the input did = the number

wind cobalt
untold rock
#

XD

wind cobalt
#

it seems correct

manic shore
#

@uncut meteor I did it

import random


def generate():
    number = random.randint(1, 6)
    a = int(input('Guess a number 1-6'))
    if a == number:
        print('correct!')
    else:
        print('incorrect')
        print('the correct answer was', + number)
generate()```
uncut meteor
#

does the bottom print work?

manic shore
#

@wind cobalt a =int(input('string'))

#

yes it does @uncut meteor

uncut meteor
#

suprising, a plus there I would expect to fail

whole bear
#

@uncut meteor

uncut meteor
#

!e

print("test", + 5)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

test 5
uncut meteor
#

wow

#

the , is redundant

#

i'd also recommend f-strings

#

!f-strings

wise cargoBOT
#

In Python, there are several ways to do string interpolation, including using %s's and by using the + operator to concatenate strings together. However, because some of these methods offer poor readability and require typecasting to prevent errors, you should for the most part be using a feature called format strings.

In Python 3.6 or later, we can use f-strings like this:

snake = "Pythons"
print(f"{snake} are some of the largest snakes in the world")

In earlier versions of Python or in projects where backwards compatibility is very important, use str.format() like this:

snake = "Pythons"

# With str.format() you can either use indexes
print("{0} are some of the largest snakes in the world".format(snake))

# Or keyword arguments
print("{family} are some of the largest snakes in the world".format(family=snake))
wind cobalt
#

I hate duck typing

uncut meteor
#

why?

wind cobalt
#

No reason

#

It's convenient until it's not

#

It's nice to have. But I think I'd prefer static typing

manic shore
#

so now what do i do @uncut meteor

uncut meteor
#

use turtle to make a race, try to make the racers into classes

#

if you don't know how to make classes, do some research before hand

uncut meteor
wind cobalt
#

I see

manic shore
#

so what is turtle

#

@uncut meteor

gentle flint
#

it's a python module

#

for drawing

uncut meteor
#

its package for python, have a quick google around.
its like drawing using a turtle movements. (left, right, up down) etc.

manic shore
#

so kinda like snake?

uncut meteor
#

grab a little example code and run it, so you get a feel

#

Kinda like snake

#

the way you control it is with angles

#

but you can just do 90 degree turns each time

manic shore
#

yea

#

how do i find sample code?

uncut meteor
manic shore
#

so wheres the exapme code in there

plush willow
uncut meteor
manic shore
#

oh ok

olive siren
#

How do you try to start it?

manic shore
#

wdym?

devout bloom
#

hey guys I want to play with you too

#

what are you playing

#

?

gentle flint
#

this

olive siren
devout bloom
#

but I can't speak😫

manic shore
#

im very confused

#

so why isnt this working

olive siren
#

seems right for me

gentle flint
devout bloom
#

it sucks😣

gentle flint
#

whatever

devout bloom
#

that's a pizza

olive siren
manic shore
#

why not

devout bloom
#

mike

gentle flint
#

type it in there

#

the full name

devout bloom
#

I want to complete my 50 messages

#

🤣

olive siren
olive siren
devout bloom
#

why don't I get to draw??

#

or how do I?

gentle flint
#

when it's your turn you choose one of three words

#

then draw it and we guess it

devout bloom
#

why was I kicked out

#

Oh I'm in

#

nice

gentle flint
#

is this the first time you're playing skribbl

devout bloom
#

yeah it's my first time

#

I'm just bad

olive siren
manic shore
#

pycharm

olive siren
#

it looks like you have to join VENV an start the script within the Terminal

devout bloom
#

how are you guys guessing these

gentle flint
#

pycharm is an IDE, not a terminal

#

ball of fire was obvious by colour

manic shore
#

oh then what is a terminal

devout bloom
#

why I'm I getting kicked out😭

olive siren
gentle flint
devout bloom
#

I guessed it

#

yeah!!

#

hurrayyhhh!

manic shore
#

oh i have no idea what terminal im using then

#

never seen that before

untold rock
#

no no

devout bloom
#

dm me the word
I promise I wont tell anyone🤣

olive siren
manic shore
#

how do i find that in pycharm

gentle flint
#

basically it's a thing where you enter text prompts and your system does smth back

#

like command prompt in windows

weary zephyr
#

is drawing easier with a touchpad

gentle flint
#

I use mouse

#

idk

olive siren
devout bloom
#

I guessed it yeah

weary zephyr
#

I'm using a mouse and it's shit
probably just me

manic shore
#

oh i found it @olive siren

devout bloom
#

😶

manic shore
#

so now what

#

@olive siren

devout bloom
#

bad drawing

olive siren
#

Join venv and start the script

olive siren
devout bloom
#

😁

olive siren
manic shore
untold rock
#

you always not need not take turtle in a varibale

#

you can just use turtle.<command(pramameter)>

manic shore
#

?

untold rock
#

lemme share one of my program

#

waiit

#
import turtle
turtle.left(60)
turtle.forward(60)
turtle.right(120)
turtle.forward(60)
turtle.back(20)
turtle.right(120)
turtle.forward(40)
turtle.left(180)
turtle.forward(40)
turtle.right(60)
turtle.forward(20)

turtle.left(60)
turtle.forward(10)
turtle.left(90)
turtle.forward(51.9615)
turtle.right(90)
turtle.forward(15)
turtle.right(53.15)
turtle.forward(10)
turtle.right(36.87)
turtle.forward(35.9615)
turtle.right(36.87)
turtle.forward(10)
turtle.right(53.15)
turtle.forward(15)

turtle.left(180)
turtle.forward(61)
turtle.left(120)
turtle.forward(60)
turtle.left(180)
turtle.forward(60)
turtle.left(120)
turtle.forward(30)
turtle.right(120)
turtle.forward(30)
turtle.left(120)
turtle.forward(60)
turtle.left(180)
turtle.forward(60)
turtle.left(120)

turtle.forward(20)
turtle.left(60)
turtle.forward(60)
turtle.right(120)
turtle.forward(60)
turtle.back(20)
turtle.right(120)
turtle.forward(40)
turtle.left(180)
turtle.forward(40)
turtle.right(60)
turtle.forward(20)

turtle.left(60)
turtle.forward(10)
turtle.left(65)
turtle.forward(60)
turtle.left(180)
turtle.forward(30)
turtle.right(120)
turtle.forward(80)
turtle.Screen().exitonclick()
#

look

#

at this one

#

i just imported turtle

#

and exectued it

devout bloom
#

you guys are all python developers?

untold rock
#

you need not always take a variable for turtle

untold rock
olive siren
#

learner

devout bloom
#

any INDIANS??

olive siren
#

Nativ American or India Indians?

devout bloom
#

India indians

untold rock
untold rock
manic shore
#

still an error

untold rock
#

whaaat

manic shore
#

why does python hate me so much

untold rock
#

just copy paste the problem here

manic shore
#

oh ok

#
  File "C:/Users/Nathan/PycharmProjects/Maze/turtle.py", line 1, in <module>
    import turtle
  File "C:\Users\Nathan\PycharmProjects\Maze\turtle.py", line 2, in <module>
    turtle.left(60)
AttributeError: partially initialized module 'turtle' has no attribute 'left' (most likely due to a circular import)
untold rock
#

justa min

devout bloom
#

sinc

olive siren
#

Your script is outside your venv

manic shore
#

?

gentle flint
#

it should be

#

lol

untold rock
#

@manic shore mate just change your file name

manic shore
#

?

untold rock
manic shore
#

OHHH

gentle flint
manic shore
#

lmao

untold rock
#

put something differtn

gentle flint
#

which it thinks is the turtle module

untold rock
#

and then try

olive siren
#

ooohhh

untold rock
devout bloom
#

how do you even draw that

olive siren
#

Wait for it

devout bloom
#

how

untold rock
devout bloom
#

I know this

olive siren
devout bloom
#

but I don't know the word

manic shore
#

yes lol

untold rock
#
import turtle
colors = ['red', 'purple', 'blue', 'green', 'orange', 'yellow']
t = turtle.Pen()
turtle.bgcolor('black')
for x in range(360):
    t.pencolor(colors[x%6])
    t.width(x/100 + 1)
    t.forward(x)
    t.left(59)```
run this one
manic shore
untold rock
#

oh

#

my name

#

nice

olive siren
untold rock
#

now del it incident_unactioned

#

XD

devout bloom
#

hey I guessed it😎

untold rock
devout bloom
#

come on even I guessed it

#

🤣

#

guessed it again

#

on fire🔥

olive siren
#

did expect it

untold rock
#

oh F i am not even in the game

gentle flint
#

...wow

devout bloom
untold rock
devout bloom
#

oh oh

#

😆

#

hey why don't I get to draw

#

bad vocabulary

#

choo chooo

untold rock
#

XD

devout bloom
#

trains ____ ???

#

whats a gnome

#

Oh got it

gentle flint
#

gnome is like a small dwarf thing

untold rock
devout bloom
#

Oh got it

gentle flint
#

from western mythology

devout bloom
#

all americans here?

gentle flint
#

not me

#

I'm Dutch

devout bloom
#

oh nice

devout bloom
#

any desi ??

#

don't leave

#

come on

feral sequoia
#

bye

devout bloom
#

😢

untold rock
#

bye

feral sequoia
#

its almost 2 am

untold rock
#

gn

#

cya

#

1:39 am

devout bloom
#

ok goodnight

untold rock
#

gn

devout bloom
#

😭

stray niche
#

Sleep guys

untold rock
#

gn

#

can anyone help me with a program ?

olive siren
#

maybe

olive siren
#

issue

untold rock
#

not a problem

#

i cant figure out

#

waiit

olive siren
#

Addition Pyramid

untold rock
#

not that easy one

#

its pascal's triangle

#

look at the numbers

gentle flint
#

^

olive siren
#

is the same

untold rock
#

11^0
11^1
11^2
11^3
and so on

devout bloom
olive siren
#

And what is the question?

untold rock
#

to print it

olive siren
#

like that?

untold rock
#

i have seen it , they are using combinations , i was thinking of doing it without that

olive siren
#

so you want to use a while loop?

#

no wait

#

a for loop

untold rock
#

oh sorry i was coding , got alerted with a ping

#

ymm

#

i am doing ti in java

#

but yea the same thing

#

i was tinking of doing it by converting the whole thing to a string

#

and then dealing with astring

olive siren
#

one string output per line?

untold rock
#

umm yes

#

just replacing the string

#

but then i was again thinking of doing the same thing with a array

olive siren
#

try it with a for loop with range(0, n)

untold rock
#

umm , yea but the thing is
i have problem with printing the nested one

olive siren
#

let me check

#

oh wait you code in java right?

untold rock
#

nvm

#

i code in places

#

python as well as java

#

@olive siren its 2:14am now , i think i should head to bed

#

cya

olive siren
#

wow oh

#

ok where you from?

#

it's 21:45 o'clock in my timezone

olive siren
digital jackal
#

Can i get some help in Code -help 0 please

rugged root
#

!paste

wise cargoBOT
#

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.

digital jackal
rugged root
#

py -3.6 -m pip install pyaudio or whatever the library is called

shut goblet
#

could you guys explain the use of
pass, break, continue etc..

rugged root
#
def stuff():
flat barn
#

What is the best code editors?

faint ermine
#

!e ```py
def add(a, b):
c = a + b
return c

return_val = add(2, 5)

print(return_val)

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

7
rugged root
# flat barn What is the best code editors?

It's entirely preference. Some people prefer PyCharm, some VisualStudio Code, others Sublime, Vim, Atom, tons. If you're just starting out, I suggest either Thonny or Mu-Editor. We've actually got a big ol' list of suggest editors:

#

!tools

wise cargoBOT
#
Tools

The Tools page on our website contains a couple of the most popular tools for programming in Python.

shut goblet
#
 def add(a, b):
   c = a + b
print(c)

faint ermine
#

add(2, 5) -> 7

flat barn
#

@rugged root thx

faint ermine
#

!e ```py
from keyword import kwlist
print(kwlist)

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

['False', 'None', 'True', '__peg_parser__', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
lucid veldt
#

Hello there

shut goblet
#

hello

faint ermine
lucid veldt
#

I'm new using python

shut goblet
#

same!

flat barn
#

So what should I pay attention to when i start to code @rugged root

lucid veldt
#

In need, I'm here because I'm looking for help

rugged root
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

faint ermine
gentle flint
#
@dataclass
class SomeObject:
    a: int
    b: str
    c: bool = False
#
class SomeObject:
    def __init__(
            self, 
            a: int,
            b: str,
            c: bool = False
        ) -> None:
        self.a = a
        self.b = b
        self.c = c
rugged root
manic shore
#

next im gonna make it generate mazes then have an ai solve them

amber raptor
#

!e ```python
import timeit
def append():
my_list = list(range(0,1000))
my_list.append(list(range(1001,2000)))

def add():
my_list = list(range(0,1000))
my_list += list(range(1001,2000))
print(timeit.timeit(append, number = 10000))
print(timeit.timeit(add, number = 10000))```

wise cargoBOT
#

@amber raptor :white_check_mark: Your eval job has completed with return code 0.

001 | 0.738728066906333
002 | 0.7784571689553559
amber raptor
#

!e ```python
import timeit
def append():
my_list = list(range(0,100000))
my_list.append(list(range(100001,900001)))

def add():
my_list = list(range(0,100000))
my_list += list(range(100001,900001))
print(timeit.timeit(append, number = 10000))
print(timeit.timeit(add, number = 10000))```

wise cargoBOT
#

@amber raptor :warning: Your eval job timed out or ran out of memory.

[No output]
faint ermine
#

!rule 6

wise cargoBOT
#

6. No spamming or unapproved advertising, including requests for paid work. Open-source projects can be shared with others in #python-general and code reviews can be asked for in a help channel.

faint ermine
#

nope

#

!rule 7

wise cargoBOT
#

7. Keep discussions relevant to channel topics and guidelines.

faint ermine
#

nope

#

!rule 4

wise cargoBOT
#

4. This is an English-speaking server, so please speak English to the best of your ability.

gentle flint
gentle flint
whole bear
#
result = '\n'.join(''.join(mylist[x:x+90]) for x in range(0, len(mylist), 90))```
past pawn
#
result=''.join([chr(10)]+mylist[x:x+90]for x in range(0,len(mylist),90))[1:]

One join.

whole bear
faint ermine
gentle flint
#

title: three signs of a bad man
artist: the olllam

whole bear
#

char_grid = '''xxx\nxxx\nxxx\nxxx'''
grid = grid.replace('\n', '')
cell_list = #for every char in grid, make dict(x=, y=, char=)
new_list = #for every dict in cell_list, get char
new_char_grid = #for every 3 chars in new list, make \n

faint ermine
#

!paste

wise cargoBOT
#

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.

whole bear
#
for ch in DemoMap['map']:
                    Root.update()
                    Cell[c] = dict(x=wCounter, y=hCounter, gfc=f'{ch}')#cells are given an x,y and graphic
                    CellList.append(Cell[ch])```
faint ermine
#

!e ```py
a = (('.' * 90) + '\n') * 40
print(a)

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

001 | ..........................................................................................
002 | ..........................................................................................
003 | ..........................................................................................
004 | ..........................................................................................
005 | ..........................................................................................
006 | ..........................................................................................
007 | ..........................................................................................
008 | ..........................................................................................
009 | ..........................................................................................
010 | ..........................................................................................
011 | ........................
... (truncated - too long, too many lines)

Full output: https://paste.pythondiscord.com/odikatucey.txt

whole bear
deft widget
faint ermine
#

recursion

#

!e ```py
def recurse_len(l):
if len(l) < 1:
return 0
return recurse_len(l[1:]) + 1

print(recurse_len([1,2,3,4]))

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

4
faint ermine
#

!e ```py
l = [1,2,3,4]
print(l[1:])

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

[2, 3, 4]
whole bear
#

Or

faint ermine
#

!e ```py
l = [1,2,3,4,5,6,7,8]
print(l[1:4])

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

[2, 3, 4]
whole bear
#

Can i ask something?
The : (cutting)
How is it useful

faint ermine
#
def add(a, b):
    c = a + b
    return c

add(2, 3) # this is will assume the value of `c` from the function
past pawn
#

k imma obfuscate the quick sort

whole bear
#

Yells in precompiled code

past pawn
#

aw

deft widget
#

:p

whole bear
#

Honey Wheres My Compiler

deft widget
#

thanks all, see you next time!

past pawn
#

!e ```py
#a basic quick sort algorithm 2: Obfuscated
quick_sort=lambda *s:((len(s)and len(len(s)==1 and(isinstance(s[0],list)and s[0])or s))<=1)and s or[(pivot:=(s:=list(s)).pop()),(items_greater:=(items_lower:=[])),[(item>pivot)and items_greater.append(item)or items_lower.append(item) for item in s],1][-1]and(quick_sort(items_lower)+[pivot]+quick_sort(items_greater))

print(quick_sort(5,2,5,6,7,4,3,1,4,2,3,6,8,7,9,0,8,6,7,5,4,3))

wise cargoBOT
#

@past pawn :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 |   File "<string>", line 2, in <lambda>
004 |   File "<string>", line 2, in <lambda>
005 | TypeError: can only concatenate tuple (not "list") to tuple
past pawn
#

where's these tuples coming from?

whole bear
#

@faint ermine sorry for @ u bc i cant talk but do you know a good free bot hosting

past pawn
#

I don't host bot externally anymore. I just keep my laptop plugged in as much as possible

#

it works...

whole bear
#

Data srubing

#

any good paid ones

whole bear
#

and i dont feel like doing that

#

?

faint ermine
#

!e ```py
def dumgen():
yield 1
yield 2
yield 3

d = dumgen()
for e in d:
print(e)

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
whole bear
#

Anything wrong with the program structure

faint ermine
#

i cant tell from that image

whole bear
#

/should i do things without a c body in some headers.

#

Oh

#

Good point.

midnight rose
#

@ me in response. but does anyone happen to know if chrome os can download and run mobaxterm?

whole bear
#

Im talking about the headers, should they have c bodys or no?

#

The actual code doesn't matter. Basically how should i handle a second c file in main

#

Or is this too abstract

past pawn
#

yeah, probably not recommended, but what I would do is make a file called install, then make it open all those files and write their contents to them, so that you can just move the install file, and click it, and that whole structure will appear and be ready

#

headers? idk I don't C

whole bear
#

Nono

#

That's not the problem

#

There is no real problem. See i am just asking how should i go about structuring this in main.c

#

how do i connect to it

#

Should i include the other c file or just work with .h

past pawn
#

idk

#

i python

#

and matlab

whole bear
#

Ohgod

#

Its turbo c++

#

Thank goat for gcc on linux

past pawn
whole bear
#

The horror

#

be me and ask for help
suddenly 5 people join
😭

past pawn
#

okay I somehow managed to replace the background 'spaces' with random text

#

I borke command window hahahaha

gentle flint
#

what the hell did you do with that colour scheme

#

you are making my head explode

whole bear
#

my eyes

manic shore
zealous wave
manic shore
#

well i did but that didn make a difference

zealous wave
#

You don't have quotes around "-"

#

If message.channel.startswith(-) is wrong

#

There needs to be quotes around it

past pawn
#

you missing a )

whole bear
#

I am a dumbo
Anti-ni hao

past pawn
#

print('...'.format('...'))

lethal knoll
past pawn
#

define label

lethal knoll
#

thank you

past pawn
past pawn
pure path
#

oh the name changed

whole bear
#

hello! @past pebble

#

how is your day so far?

#

not as well as id like it to be

#

i blew off some things i should have done

#

im sure you will figure it out eventually

#

if you stick to it that is

#

even if i did get the voice verification my mic would be hell to listen to

craggy zephyr
#

Hello @severe pulsar

severe pulsar
#

hey

craggy zephyr
#

WHAT'S UP!

severe pulsar
#

awesome game

craggy zephyr
#

Lemme see

severe pulsar
#

hadeez is using phoenix liveview for scalable websockets

#

really cool framework hadeez!

craggy zephyr
#

Ohhh cool @earnest crag

#

He is a miner too

severe pulsar
#

hadeez can you teach me phoenix liveview

#

please

craggy zephyr
#

Me too Hadeez

severe pulsar
#

uh

#

nice

meager crow
fiery hearth
#

"

somber heath
#
('a'
'b'
'c')```
#

!kindling

wise cargoBOT
#

Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

whole bear
#

Do you know if there is a channel to get help with pyautogui

#

No error msgs

#

It just spam clicks for some reason

#

It is odd

#

Probably gonna relaunch

craggy zephyr
wise cargoBOT
#

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.

rugged root
#

!projects

wise cargoBOT
#

Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

hard wyvern
#

hello

#

everyone

swift valley
#

Greetings

#

I'll go and make coffee

rugged root
#

!resources @hybrid berry Check out "Automate the Boring Stuff" and/or "A Byte of Python"

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

rugged root
quaint night
#

what is that?

hybrid berry
rugged root
#

A song that I forgot existed and I love it

#
swift valley
#

Sand-mode discord pls

somber heath
#

It's like an old paper notebook.

#

I kind of dig it.

stray niche
#

sepia-ish

rugged root
swift valley
#

Pretty neat

gentle flint
swift valley
#

I have so much to work on for my site, and of all the things I decided to be absorbed in, it just had to be configuring Nix

rugged root
#

Did it really have to be?

#

Or was this a "no seriously, it has to. I promise. This isn't just because I read about it and I love it"

faint ermine
swift valley
#

e.g. cached CI builds that I can use locally

#

Which is important for Haskell projects with > 20 dependencies

rugged root
#

Okay, fair

#

OH wait

#

It manages stuff from Cabal as well?

swift valley
#

Yep

#

Instead of Cabal doing the downloads, builds, and per-project source caching, Nix wraps around that and stores it globally

#

Dhall is a configuration language

#

resident FP nerd btw

#

yikes my dude

gentle flint
#

sorry lol
just did an audio test and it sounds pretty terrible with that loud screech

swift valley
#

Apart from the types, you also have functions and stuff

rugged root
somber heath
#

Szalejot

gentle flint
#

gotta go buy some milk, I'll be back in 15

swift valley
#

I guess FP folks like niche things for the sake of fulfilling the "purely functional" thing

honest pier
#

it goes with their "FP personality"

rugged root
#

Since you know I've got a hunger weird functional things

vivid palm
#

ooh we have 2 general vcs now?

swift valley
#

Big agree on the FP evangelism, I feel like one way or another you're bound to encounter one of those types of individuals; in defense of niche FP tooling, when they're used as tools in the appropriate context, they're serving their purpose in full

rugged root
swift valley
#

At the very least, they can be enabled through the build tool

atomic edge
#

how would you make a program that automatically organizes words in alphabetic order?

rugged root
#

There's a .sort() method on strings and lists and there's also the sorted() built-in function

atomic edge
#

sick thanks.

#

Also, I changed my name, it's heyo.

faint ermine
atomic edge
#

Mina did you lube your switches?

#

They sound lubed cherry mx silvers if im honest.

vivid palm
#

ooh

rugged root
#

kinky

vivid palm
#

they are retooled blacks w/ 205g0 in a polaris w/ brass plate

rugged root
#

Wait, brass?

faint ermine
atomic edge
#

lol

#

kinky?

vivid palm
#

yes and polaris is an alu case

rugged root
#

Old habit from high school

atomic edge
#

shouldve guessed, eh?

rugged root
#

I think it was from the movie Blazing Saddles

atomic edge
#

dude ive been having a blast reading sherlock holmes

#

you should too

rugged root
#

Wish I had time to read. Or the willpower

#

Most days when I get home I just want to game

atomic edge
#

I also like mythology and hp lovecraft

rugged root
#

God Lovecraft is difficult to get through

atomic edge
#

it came when I played bloodborne and dark souls...

rugged root
#

Bloodborne's setting is so much better than Dark Souls. That's my opinion at least

atomic edge
#

Depends.

#

That's because it was refined as a "tutorial" for Dark Souls.

#
  1. No shield.
rugged root
#

No no, I mean the setting specifically

atomic edge
#
  1. Chalice dungeons show how good level designers are at their job (though Heditaka designed all of the levels himself.)
#

Not all.

#

ew bloodtinge farming

rugged root
#

Exactly

atomic edge
#

i wanted to break my ps4 when I tried to farm that crap

#

I thought about making a custom keyboard @vivid palm

#

until I saw how long it wouldve taken.

plush willow
#

@trail shore office fan?

atomic edge
#

And then I got really into these switches; though I wouldve preffered logitech's mx keys advanced.

trail shore
vivid palm
plush willow
#

@trail shore watchin it again

atomic edge
#

also because of the money.

#

I could afford one, but I would prefer to save it for other reasons.

vivid palm
#

yup not a cheap hobby

trail shore
atomic edge
#

Such as getting a better cpu cooler.

#

since this one is trash.

plush willow
#

@trail shore Dinner Party was the best

trail shore
plush willow
atomic edge
#

pycharm has a html interpreter?

trail shore
atomic edge
#

just looked over to make a new file and saw that option.

plush willow
atomic edge
plush willow
#

@trail shore and the time when Ryan took the place in corporate and then came back to Scranton, and when he started shouting to others it was shown that Stanley was actually thinking that if Ryan is at such high position with authority, he sure could marry his daughter, all of this with just one expression

gentle flint
#

buy me a covfefe

faint ermine
trail shore
wise glade
#

so I had to make a rock-paper-scissor game, for my assignment

plush willow
tidal salmon
#

I have to go make more coffee before my work meeting. See you all!

wise glade
#

made this using my python skill python

def greetingsMap(winner):
    return{
        'player1': "Congratulations Player1 Wins",
        'player2': "Congratulations Player2 Wins",
        'draw' : "That was a draw",
        'foul' : "Foul Play Made",
    }.get(winner, "Foul play made.")

def resultMap(play):
    return{
        'pr' : 'player1',
        'rp' : 'player2',
        'sp' : 'player1',
        'ps' : 'player2',
        'rs' : 'player1',
        'sr' : 'player2',
        'ss' : 'draw',
        'pp' : 'draw',
        'rr' : 'draw',
    }.get(play, "foul")

def RockPaperScisor():
    print("Enter 'r' for rock, 's' for scisor, 'p' for paper!")
    while True:
        p1 = input("Player1 Move: ")
        p2 = input("Player2 Move: ")
        print(greetingsMap(resultMap(p1+p2)))
        new_game = input("Want to start a new game,'y or n':")
        if new_game == 'n':
            break

RockPaperScisor()
#

seems like all u preoccupied with some serious stuff before i got here

#

so you guys are not even looking in this chat

#

ok

gentle flint
wise glade
#

damm millennials, always speeding on the road

gentle flint
#

In consumer computer products, a beige box is a standard personal computer (PC). It has come to be used as a term of derision implying conservative or dated aesthetics and unremarkable specifications.The term is ultimately derived from the style of many early personal computers and dedicated word processors, which were usually beige or similar c...

wise glade
#

👆 where's mouse? no mouse in that time?

dark seal
#

huh

gentle flint
#

it's only got a CLI

wise glade
#

wait till you my next question

#

anyone knows, "jerk algorithm"?

dark seal
#

oh yeah

wise glade
#

funniest video I've seen in a while on youtube

gentle flint
#

perhaps Hemlock's angry cat pillow ate it

wise glade
#

was it Steve Jobs, who thought of mouse very first time?

gentle flint
#

nope

#

Douglas Engelbart

#

the first OS to use a GUI with windows etc, the Xerox Alto, used a mouse

wise glade
#

is mouse cursor also moved in screens through programming? just programming alone?

gentle flint
#

everything in an OS is programmed

#

so yes

wise glade
#

they must have made some new electronics for it?

#

new protocols etc

#

whatever that's called

vivid gull
#

MS DOS 6.22 and Win 3.11

trail shore
somber heath
gentle flint
#

when I was interested

wise glade
#

i've never seen a floppy work

#

just seen a floppy disk, my parents used to have

gentle flint
#

they click

#

loudly

#

and sometimes they grind, and then you have an issue

wise glade
#

i mean, I could go to youtube

#

you guys don't need to explain sounds

trail shore
gentle flint
#

thx lol

trail shore
gentle flint
#

this is pretty much what it sounds like

trail shore
gentle flint
#

uh-oh

#

your CPU made sounds?

dark seal
#

thats a new one

#

lol

trail shore
dark seal
#

how does that even happen?

trail shore
#

anyone here who ever played road rash?

amber raptor
#

Power switching

wise glade
amber raptor
#

Older CPUs utilized more power and were larger so it was easier to hear the voltage changing

wise glade
#

higher number, bigger file size

amber raptor
#

Plus they were slower

trail shore
wise glade
#

how does bit rate, relate to sound?

trail shore
#

and technical park i dont know lmao

#

part*

wise glade
#

i think something to do with fourier transform

#

oh, right

#

sampling

#

higher sampling, lower aliasing

#

better quality

#

less noise

trail shore
#

possible, one can even think of as a video framerate i guess

wise glade
#

nyquist sampling

trail shore
#

cuz 60fps is better than 20

wise glade
#

rule 👆

trail shore
wise glade
#

sampling rate > 2*frequency of the signal

iron aspen
#

nyquist formula gives us the minimum sampling rate in order to capture the best quality

wise glade
#

also, I started watching Silicon Valley series, and its based on file compression thing, they keep doing

#

I'm only on season 1 right now

severe pulsar
#

ooh that show is really good

wise glade
#

some new file compression algorithm

#

so you've watched it 😏

trail shore
wise glade
#

yeah, the real important was the "jerk algorithm"

trail shore
severe pulsar
#

trueee

#

i mean then you're probably better off watching a youtube tech tutorial

#

if you really want implementation details and tech explanations

wise glade
#

"mean jerk time" 🤣

severe pulsar
#

lol

wise glade
#

brb (maybe)

digital jackal
#

The code that caused this warning is on line 389 of the file C:\python39\lib\site-packages\wikipedia\wikipedia.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor.

#

@Client.command()
async def search(ctx, amount : str, features = "lxml"):
channel = Client.get_channel(801135115257380###)
result = wk.summary(amount)
await ctx.send(result)

gentle flint
#

@rugged root

severe pulsar
#

thats beautiful

#

damn bulma is a great css framework

gentle flint
#

this is the list

untold rock
#

hey ppl
i saw somthing today in my terminal, a bit strange

plush willow
untold rock
#

this is my program , it searchs for a number then converts it to a character and then check that if it is equal the iinput string's first character , if it matches then it moves on to the next one , if it doesent , itjust searches for another random number but look at the image , if i am right the 5th line should be a space , but when i try to select the space it does nothing , so that place is just blank , how could the interpretor print a line without a random number ?

#

i can give you the code

#
import random
import time

s = input("Enter String : ")
time.sleep(5)
os = ""
x = 0
i = 0
while s != os:
    c = chr(random.randint(0, 122))
    if c == s[i]:
        os += str(c)
        i += 1
    else:
        print(os + c)
    time.sleep(0)
    x += 1
print(f"The final result after random searching was {os}")
print(f"The program has run {str(x)} times")
#

anyyoneeeeee ?

shut goblet
gentle flint
#

what makes you think it's wrong?

severe pulsar
#

try reloading vscode, it looks fine to me

shut goblet
#

@gentle flint @severe pulsar

amber raptor
#

Check line 42

shut goblet
#

iddk what the error is

#

😭

amber raptor
#

Check line 42

severe pulsar
#

oh

shut goblet
#

cant find it 😭

severe pulsar
#

you need to close the parentheses

shut goblet
#

o

amber raptor
#

Look at ()

shut goblet
#

🤣

#

🥳

#

thx

severe pulsar
#

sorry rabbit

#

lol

#

but i mean, its probably faster for him, and i think he knows why he should close the parenthesis

amber raptor
#

This is why powershell ‘ is great

severe pulsar
#

oh hey griff 👋

#

oof

whole bear
#

Anyone know where I can get lego information about EV3 Basic

rugged root
severe pulsar
#

nice

shut goblet
#

so if the
try:
is wrong, will it ask the try again?

severe pulsar
#

if there is an error thrown in the try block --> the code inside the except will run

shut goblet
#

so if they dont enter an int in the try

severe pulsar
#

yeah

#

then it will run the except part

#

but it wont re run the try part

shut goblet
#

how do i do it so after the try part fails, it shows the expect part, then goes back to try

rugged root
shut goblet
#

(to give the user another try)

severe pulsar
#

i would use loops

shut goblet
#

so if i want index_to_edit to be an int

#

i do:

dense notch
#

hello

#

how r u guys

rugged root
#

Good, you?

shut goblet
#
while index_to_edit != int(index_to_edit):
  code....
dense notch
severe pulsar
#

check the isinstance function @shut goblet

rugged root
severe pulsar
#

it allows type checking

dense notch
#

oh

shut goblet
severe pulsar
#

uh, anyone good with bot commands lmao

dense notch
#

hello can anybody help me wht all can i do here

#

pls help

#

or else am clue less

#

am just hearing guys

#

i cant talk

#

cause am new here

uncut meteor
#

once you meet the criteria you can join with your mic. there should be some info here #voice-verification

#

3 days on the server and 50+ msgs

shut goblet
dense notch
uncut meteor
#

are you using vsCode?

shut goblet
#

yes

#

so it will work @uncut meteor ?

uncut meteor
#

Any other vscoders in the chat?

shut goblet
#

u see any errors in the /n ?

dense notch
#

nope i use idle

uncut meteor
#

oops

shut goblet
#

ooo

#

got it

#

❤️

uncut meteor
shut goblet
#

🥳

dense notch
uncut meteor
#

🥧Charm

dense notch
uncut meteor
#

||🥧on||
||🥧off||

dense notch
#

guys the topic you guys r talking makes me so impatient to talk abt

#

cause i have decent knowledge n would luv to get knowledge form u guys

amber raptor
#

.Net Core is usage is also climbing

uncut meteor
#

im also a dinosaur dino4

amber raptor
#

Microsoft work on CLR speed has come long way.

rugged root
#

@dense notch Probably better to talk in here so that others can chime in if they have information. My main thing is that you should never hesitate to ask questions in this server. There's no such thing is a bad question. Everyone started somewhere, everyone was confused at one point

shut goblet
#

the code works fine

uncut meteor
#

you need to add a thing to catch

#

like this

dense notch
uncut meteor
#

!e

try:
  oof = 50 / 0
except ZeroDivisionError:
  print("you can't do that!")
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

you can't do that!
uncut meteor
#

so there I am catching the ZeroDiv error

#

you will need to find out what error you need to catch

#

and put it there.