#voice-chat-text-0

1 messages · Page 130 of 1

limpid umbra
#

Bowie for 80 p

#

woof - great weed chopper ... chopper in general

rugged root
#

!stream 322504171636916226

wise cargoBOT
#

✅ @lucid blade can now stream until <t:1683746427:f>.

limpid umbra
#

@lucid blade you 3D print ?

rugged root
limpid umbra
#

i need one of doze

rugged root
limpid umbra
#

ELO - TIME Full Album 1981 - pretty good

rugged root
#
def ham(pork: tuple[int] | tuple[()]):
  ...
gentle flint
#

Union[Tuple[int], Tuple[()]]

limpid umbra
#

whats this ???

woeful wyvern
#

Danke!

rugged root
#

Any time

#

!stream 418374628889853952

wise cargoBOT
#

✅ @neon vigil can now stream until <t:1683750155:f>.

rugged root
#

!stream 418374628889853952

wise cargoBOT
#

✅ @neon vigil can now stream until <t:1683750689:f>.

gentle flint
#

I'm debating between

resp_dict["nodes"] = list(
    map(lambda node: node.to_api_dict(), resp_dict["nodes"])
)

and

resp_dict["nodes"] = [node.to_api_dict() for node in resp_dict["nodes"]]

The second one seems more readable to me, though I'm not sure. Is there a performance advantage to using map and lambda?

rugged root
#

Can't know without testing

gentle flint
#

fair

#

it's timeit time

#
In [10]: class Foo:
    ...:     def __init__(self, x):
    ...:         self.x = x
    ...:     def unpack(self):
    ...:         self.x = {"int": self.x}
    ...: 

In [11]: def lambda_func():
    ...:     mylist = [Foo(i) for i in range(100)]
    ...:     mylist = list(
    ...:         map(lambda z: z.unpack(), mylist)
    ...:     )
    ...: 

In [12]: def list_compr_func():
    ...:     mylist = [Foo(i) for i in range(100)]
    ...:     mylist = [z.unpack() for z in mylist]
    ...: 

In [13]: %timeit lambda_func()
54.8 µs ± 2.5 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)

In [14]: %timeit list_compr_func()
47.8 µs ± 227 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)

In [15]: %timeit lambda_func()
53.3 µs ± 797 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)

In [16]: %timeit list_compr_func()
47.9 µs ± 92.9 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)

In [17]: 
#

the list comprehension is consistently faster than the lambda

#

question answered I guess

rugged root
#

!pep 416

wise cargoBOT
#
**PEP 416 - Add a frozendict builtin type**
Status

Rejected

Python-Version

3.3

Created

29-Feb-2012

Type

Standards Track

leaden heart
#

yooo

#

this is so cool

willow light
#

Sometimes the American portion sizes are correct. Entire liter beer glasses.

maiden skiff
#

I found a library that I will study now

#

numpy,pandas,matplotlib,opencv

rugged root
#

@vital galleon

vital galleon
rugged root
granite fulcrum
rugged root
#

Nim?

somber heath
rugged root
#

Yeah, so BeeWare is the overall suite

#

Toga seems to be the GUI, and Briefcase is the packaging part

#

Seriously all their mascots are adorable

vital galleon
#

Thank you - currently going through their set up process

rugged root
#

I really hope it ends up being good for you

somber heath
#

I wonder if there's a GNUI project.

rugged root
#

I hope so

#

For the pun

limpid umbra
#

@granite fulcrum im just beginner python programmer - is Mojo going to be open source ? looks kinda like payware , not sure

kind wharf
#

Why do I need different slashes in Windows to give path -

I have the following code - filtered_df = pd.read_csv("D:\get_something\/final_df.csv"
Why can't I just do - filtered_df = pd.read_csv("D:\get_something\final_df.csv"

granite fulcrum
limpid umbra
#

@granite fulcrum ok cool

ripe garden
#

@foggy plaza

foggy plaza
#

@ripe garden ok cool

kindred granite
#

@kindred granite ok cool

somber heath
#

@full salmon 👋

full salmon
somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

full salmon
# somber heath !voice

I tried this. But it says 50+ messages and then something about not being active for 3 of 10minute blocks I guess though I have been active more than that

#

So I thought of waiting for 50+ messages. Not sure if there is another way though

#

Yeah, true. I don't happen to know much of the answers to message and I have asked few questions that I am working on, but they are usually very fundamental

#

Thanks! Yeah true, your advice is a good one. I sort get into details and it tends to become dry.

#

I should work on more fundamental problems to begin with I guess

dense meadow
#

'sup

gentle flint
#

'sup

full salmon
#

Sorry, I didn't completely follow the class objects example. Can you please mention it again for me. Would you happen to be sharing your screen?

#

Oh okay, I got it. Sorry, I had forgotten about how it works

#

Do we call this by any particular name for the way of accessing data by using the methods of a class? I understand how we do this. But Like OOPS concepts, could we call this as abstraction

somber heath
#
class MyClass:
    pass```
dense meadow
#

Hello Opal

somber heath
#
class MyClass:
    pass

MyClass()
full salmon
#

Object is an instance of this class. (Correction object is an reference to the instance of the class)

dense meadow
#

How can we use user input in Python?

#

Just an example will do

somber heath
#

I'll get to that.

#

Later

dense meadow
#

Ok sure.

full salmon
#

a =input("enter a variable") # vary basic way of taking input from user during run time

dense meadow
#

oh ok

#

thanks

#

🙂

somber heath
#

!e ```py
class MyClass:
pass

a = MyClass()
b = MyClass()
print(id(a))
print(id(b))```

full salmon
#

Sorry, yeah, coming to the point that we were discussing. Garbage collection concept is not my strong point. Maybe let's get to this after we go over some of the class and objects stuff if that's all right

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 140187321630928
002 | 140187321630992
full salmon
#

You know in some languages we do like 'classname objectname' , but in python this syntax is not mandatory if I am not wrong

somber heath
#

!e ```py
class MyClass:
def my_method(self):
print('Hello, world.')

instance = MyClass()
instance.my_method()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world.
full salmon
#

Okay

somber heath
#
a is b```
full salmon
#

I do. But I also get that it works in a non-intuitive way sometimes in python. I do have to explore this

#

Yeah, I have used is operator

#

== and is seem to have their differences that I have to completely understand later

#

No, I am quite confused about self used in class

#

I know they use it to say that we are referring to the same class we are in and has something to do with the scope of where to access the variable maybe as per my understanding until now

somber heath
#

!e ```py
class MyClass:
def is_self(self, arg):
print(self is arg)

a = MyClass()
b = MyClass()
a.is_self(a)
a.is_self(b)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | True
002 | False
full salmon
#

instancename.methodname(arg,..,)

class classname:
def method name(self,arg,...):
.....

self is instancename (basically what is at the left side of the dot operator)

#

This is my understanding. I think I followed your explanation

somber heath
#

!e ```py
class MyClass:
def is_self(self, arg):
print(self is arg)

a = MyClass()

a.is_self(a)
MyClass.is_self(a, a)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | True
002 | True
full salmon
#

Can we say 'a' or 'b' or instancename is a reference to the instance created from the class (for ex MyClass)

( and also instancename could be called as OBJECT of the class I guess)

full salmon
full salmon
#

Yeah, true.

#

Do you mean return type of the class when you say 'type'?

frigid dove
#

I don't have the permission to talk..

somber heath
#

!,voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

full salmon
#

Is it correct to say 'Class is one of the datatypes and object is of the type Class'?

#

Sorry, I am bit slow in typing. Hope it is not inconvenient for you

somber heath
#

!e ```py
class MyClass:
def init(self):
print('Hello, world.')

MyClass()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world.
full salmon
#

Can we say Dunder as In-built methods of the class datatype

#

as I thought as they are not always in our code, but python looks for them in it's 'source code'(not sure if the word source code is correct), I called them as built-in methods

somber heath
#

!e ```py
class MyClass:
def init(self, arg):
print(arg)

MyClass('Hello, world.')```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world.
full salmon
#

Sorry, did you happen to mention not all classes have them defined or not defined?

somber heath
#

!e py 'abc' / 5

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     'abc' / 5
004 |     ~~~~~~^~~
005 | TypeError: unsupported operand type(s) for /: 'str' and 'int'
somber heath
#

!e py print(hasattr(str, '__div__'))

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

False
frigid dove
#

I have to go.. Nice to meet you @somber heath see you later..

full salmon
#

My guess is that we cannot use divide operand with a class datatype

somber heath
#

!e ```py
class MyClass:
def add(self, arg):
return f'Hello, world. I was given {arg}.'

a = MyClass()
print(a + 123)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world. I was given 123.
full salmon
#

Divide has some rules in math maybe

#

I am now trying to understand how + has worked!

somber heath
#
a.__add__(123)```
#
MyClass.__add__(a, 123)```
#
a + 123```
full salmon
somber heath
#

!e py print('abc'[0])

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

a
full salmon
#

I have not done it this way. It is interesting to see this syntax. I have done as

y= 'abc'
print(y[0])

#

Both actually mean the same and I get it now

#

Sounds good

somber heath
#

!e ```py
class MyClass:
def getitem(self, key):
return f'I am getitem. Have {key} back.'

instance = MyClass()
print(instance['mykey'])```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

I am getitem. Have mykey back.
full salmon
#

Is this called retrieval subscription dunder method?

somber heath
#

!e ```py
class MyClass:
def setitem(self, key, value):
print(f'I am setitem. {key = } and {value = }.')

instance = MyClass()
instance['mykey'] = 'myvalue'```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

I am setitem. key = 'mykey' and value = 'myvalue'.
full salmon
#

Oh, in Java they have setter and getter functions. I don't know Java, but know just this

somber heath
#

!e ```py
class Person:
def init(self, arg):
self.name = arg

def greet(self):
    print(f'Hello. I am {self.name}.')

a = Person('Peter')
b = Person('Sally')
a.greet()
b.greet()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hello. I am Peter.
002 | Hello. I am Sally.
full salmon
#

Nice way to define, methods are functions attached to an instance of a class.

#

I just saw an usage of del to delete items of a item (not sure if it can be used for full list deletion itself). Seems del can be used with classes as well then

#

Okay, yeah we have .clear(), .pop() for list elements

When del does dereference the instance of a class, but the object does not go away. So, when does the object actually get deleted (as we discussed object is removed only when it is not referenced any more)

#

Okay, this garbage collection is done during the program run time actually (when anything that is dereferenced exists) ?

#

Thanks!

#

Key, arg etc in our examples

#

Can we please try this scope & namespace scenarios in couple of small examples as I do follow few points of scope and namespace. But I am still not confident

somber heath
#
class App:
    def run(self):
        while True:
            ...

App().run()```
full salmon
somber heath
#

LEGB rule.

#

Local, Enclosing, Global, Builtin.

full salmon
#

No problem, you can talk it out

#

I need to log off for a second and log back in

#

to see if my voice gate is passed

somber heath
#

!e ```py
def outer():
str = 'enclosing'

def inner():
    str = 'local'
    print(str)

inner()

str = 'global'
outer()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

local
somber heath
#

!e ```py
def outer():
str = 'enclosing'

def inner():
    print(str)

inner()

str = 'global'
outer()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

enclosing
quaint oyster
#

variable str redefined when class called

somber heath
#

!e ```py
def outer():

def inner():
    print(str)

inner()

str = 'global'
outer()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

global
somber heath
#

!e ```py
def outer():

def inner():
    print(str)

inner()

outer()```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'str'>
quaint oyster
#

class functions are able to access global variables

#

what the frick happened there

#

no error?

#

oh str is a defined type

somber heath
#

builtin

#

Local, enclosing, global, builtin.

#

LEGB rule.

quaint oyster
#

yes yes priorities

somber heath
#

The order of locations that Python tries to find things.

quaint oyster
#

i see it more as a runtime order

#

maybe that's the wrong way to think about it

#

but i kind of see things in assembly

dense meadow
#

Hi guys, I have a doubt.

dreamy trellis
#

wat is it

dense meadow
#

Here is the code:

# - Create a distance converter converting Km to miles
# - Take two inputs from user: Their first name and the distance in km
# - Print: Greet user by name and show km, and mile values
# - 1 mile is 1.609 kilometers
# - hint: use correct types for calculating and print
# - Did you capitalize the name

name = input('What is your name?: ')
km_distance = input('Enter your distance in km: ')
float(km_distance)
miles = km_distance/1.609
print(f'Hello {name}!')
print(f'The your km to miles conversion is {miles}')
#

and here is the output:

#

no

#

!e

- Create a distance converter converting Km to miles

- Take two inputs from user: Their first name and the distance in km

- Print: Greet user by name and show km, and mile values

- 1 mile is 1.609 kilometers

- hint: use correct types for calculating and print

- Did you capitalize the name

name = input('What is your name?: ')
km_distance = input('Enter your distance in km: ')
float(km_distance)
miles = km_distance/1.609
print(f'Hello {name}!')
print(f'The your km to miles conversion is {miles}')

wise cargoBOT
#

@dense meadow :x: Your 3.11 eval job has completed with return code 1.

:warning: Note: input is not supported by the bot :warning:

001 | What is your name?: Traceback (most recent call last):
002 |   File "/home/main.py", line 8, in <module>
003 |     name = input('What is your name?: ')
004 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 | EOFError: EOF when reading a line
dense meadow
#

the error is actually: Traceback (most recent call last): TypeError: unsupported operand type(s) for /: 'str' and 'float'

dreamy trellis
#

uh

#

its because nothing was entered in name

#

add some error handlers lol

dense meadow
#

no

dreamy trellis
#

wait

dense meadow
#

unsupported operand type(s) for /: 'str' and 'float'

dreamy trellis
#

lemme recode it for u

dense meadow
#

this is the error

dreamy trellis
# dense meadow this is the error
name = input('What is your name?: ')

while not name:
    name = input('Please enter your name: ')

km_distance = input('Enter your distance in km: ')

while not km_distance.isdigit():
    km_distance = input('Please enter a valid distance in km: ')

km_distance = float(km_distance)
miles = km_distance / 1.609

print(f'Hello {name.capitalize()}!')
print(f'Your distance of {km_distance} kilometers is equal to {miles:.2f} miles.')
dense meadow
#

lemme just check if it works

#

thanks man

somber heath
wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello, world. I was given 123.
somber heath
#

Dunders sub, add, mul, sure. div? NOPE.

#

I knew this, but had forgotten.

rugged root
#

Huh

wind raptor
#

👋

rugged root
#

I hate printers

rugged root
#
textbox = customtkinter.CTkTextbox(app)

textbox.insert("0.0", "new text to insert")  # insert at line 0 character 0
text = textbox.get("0.0", "end")  # get text from line 0 character 0 till the end
textbox.delete("0.0", "end")  # delete all text
textbox.configure(state="disabled")  # configure textbox to be read-only
#

@full salmon How's it going? Been seeing you around a lot just haven't gotten a chance to interact with you

gentle flint
maiden skiff
#

hi

rugged root
#

@gentle flint What brand of drill did you get again?

gentle flint
#

bosch

rugged root
#

Cheers

#

Needing to get a drill

gentle flint
#

specifically a bosch gsr 12v-15

#

some of the bosch drills are crap

#

some are pretty good

#

this one's pretty good

rugged root
#

Solid

gentle flint
#

don't get one of the green ones

#

the blue ones are better

rugged root
#

Weird

gentle flint
#

no, they're different product categories

#

they colour their professional tools blue

#

the cheap diy ones green

rugged root
#

The bag is blue but the drill is teal

#

Hmmmmmmmmmm

#

(I know it's one of the blue quality ones)

thin breach
#
#![allow(unused_variables, dead_code, non_snake_case, unused_imports)]
extern crate nalgebra as na;
use std::thread::sleep_ms;
use macroquad::{prelude::*, color::{self, colors}};
//my lib
#[path = "../src/physics_sim.rs"]
mod physics_sim;
use physics_sim::*;

//CONSTANTS
const GRAVITY: na::Vector2<f64> = na::vector![0.0, 9.8];

#[macroquad::main("physics sim")]
async fn main () {
    //solver 1
    let mut objects: Vec<VerletObject> = Vec::new();
    let mut test_link: Vec<[f64; 3]> = vec![[0.0,0.0,0.0]];

    objects.push(VerletObject{position_current: na::vector![370.0, 220.0], position_old: na::vector![370.0, 220.0], radius: 10.0, mass: 1000.0, acceleration: na::vector![0.0, 0.0], color: GREEN});
    
    //solver 2
    let mut objects2: Vec<VerletObject> = Vec::new();
    let mut test_link2: Vec<[f64; 3]> = vec![[0.0,0.0,0.0]];

    objects2.push(VerletObject{position_current: na::vector![370.0, 220.0], position_old: na::vector![370.0, 220.0], radius: 10.0, mass: 1000.0, acceleration: na::vector![0.0, 0.0], color: RED});

    
    


    let mut solver = Solver{objects: objects, gravity: GRAVITY, circle: na::vector![350.0, 220.0, 150.0], links: test_link, ..Default::default()};
    let mut spawn = 100;
    
    //keeps window open
    let mut x = 0;
    loop {
        if macroquad::input::is_key_pressed(macroquad::input::KeyCode::Q) {
            break;
        }
        clear_background(WHITE);



        if x > 10 {
            solver.objects.push(VerletObject{position_current: na::vector![370.0, 220.0], position_old: na::vector![370.0, 220.0], radius: 1.0, mass: 1000.0, acceleration: na::vector![0.0, 0.0], color: GREEN});
            x = 0;
        }
        x += 1;
        solver.Update(0.01, 10);
        solver.Draw();
        
        next_frame().await;
    }

    
}
next orbit
#

How do I even start coding. Im beginner

#

Coding in general

#

Im currently in a Wordpress class. They're using HTML and CSS basic

#

but I want to focus on learning Python

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

next orbit
#

I wrote my first Python code yesterday

rugged root
#

"A Byte of Python" linked on there is great as well

next orbit
#

What are some cool projects to work on that are easy/intermediate. I have a bunch of employers I will be interviewing with, and I would like to have a little bit of a portfolio

next orbit
#

What is your current job? @rugged root

#

Yeah this wordpress class I am in runs all summer, but I would like in the next 3 months to have a basic/intermediate understanding and work on projects to show for my work as well.

rugged root
#

Fair fair

#

Hmm

next orbit
#

print("help")

#

XD

barren crown
#

Anyone have thoughts about real python courses and tutorials?

rugged root
#

The articles are amazing, haven't heard much about the course

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

rugged root
#

Even if it's not new or innovative

swift valley
#

gotta go, still waiting on Tears of the Kingdom

barren crown
#

Cool, i'll check it out,

rugged root
next orbit
barren crown
#

@slate light are you red team or blue team?

rugged root
#

Oh for sure

#

No argument

swift valley
barren crown
#

if you know anything about cyber sec you would know what I mean

rugged root
#

I did the digital pre-order (which I know, what a waste) but at least I'll have it installed updated and ready

barren crown
#

No, it's attacking and hacking other people (red team) blue team (security forensics and data analysis)

dense meadow
#

Excuse me, but I have a doubt.
How do I Add user input into a list?

#

Here is the exercise they sent me:

somber heath
#

list.append, input

dense meadow
somber heath
#

Or list.insert, depending

dense meadow
#

oh okay i will try it

somber heath
#

!e py my_list = [] print(my_list) my_list.append('abc') print(my_list) my_list.append(123) print(my_list)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | []
002 | ['abc']
003 | ['abc', 123]
dense meadow
#

what if we already have some contents in the list?

#

this is the full list:

sales_w1 = [7,3,42,19,15,35,9]
sales_w2 = [12,4,26,10,7,28]
sales = []
sales = sales_w1 + sales_w2
ivory horizon
dense meadow
#

i have to add user input to sales 2[] list

somber heath
dense meadow
#

I have to merge sales_w2 and sales_w1 into 1 list after accepting user invite from sales_w2

somber heath
#

Remember about the return type of input and casting?

dense meadow
#

yes

#

int(sales_2)

#

but how do i accept user input and then put it into a list

#

I got it!

somber heath
#

The input function asks for user input.

dense meadow
#
number_list2 = input("Enter your number")
int(number_list2)
sales_w2.append(number_list2)
full salmon
wind raptor
full salmon
stuck furnace
somber heath
slate light
#

my small machine

dense meadow
#

wait

#

when i run the code, it comes into the list as an str

somber heath
# dense meadow i don't understand

Every object in Python is of a type. You are appending an object to the list object. What type is the object you're adding to the list?

dense meadow
#

it should have been : int(sales_w2)

stuck furnace
#

Array to a list? pithink

somber heath
#

@dense meadow But why was it a str instead of an int?

dense meadow
#

the exercise

#

and this is the code

#
sales_w1 = [7,3,42,19,15,35,9]
sales_w2 = [12,4,26,10,7,28]
sales = []
sales = sales_w1 + sales_w2
number_list2 = input("Enter your number")
int(sales_w2)
sales_w2.append(number_list2)
print(sales_w2)
print(sales) 
somber heath
#
int(obj)```How do you remember this for later use?
dense meadow
#

int() converts anything except int into a int

somber heath
#

Including ints.

stuck furnace
#

It's pretty fun even if you don't do very well 😄

dense meadow
somber heath
#
int('5')```What does this evaluate to/return?
dense meadow
#

5

full salmon
somber heath
#
abc = input(...)
5 #int(abc)
my_list.append(abc)```
dense meadow
#

there is no list

somber heath
#

Pretend.

dense meadow
#

Ok

#
number_list2 = input("Enter your number")
int(sales_w2)
sales_w2.append(number_list2)
#

no

somber heath
#
number_list2 = input("Enter your number")
5 #int(sales_w2)
sales_w2.append(number_list2)
dense meadow
#

this is worong

#

or is it?

somber heath
#

I am making a point.

dense meadow
#

Ok.

#

So this code is correct, right?

somber heath
#

int is not an in-place operation.

dense meadow
#

what do you mean?

somber heath
#

It is evaluated to an int /returns an int.

dense meadow
#

ok

somber heath
#

The call to something is replaced by its return.

dense meadow
#

oh ok

#

i tried it again but still, str only

#

why

#

explain to me like 5 year old

somber heath
#

!e py v = '123' int(v) print(type(v))

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'str'>
ivory horizon
dense meadow
#

:0

dense meadow
stuck furnace
#

Yeah it's language on top of the GObject system.

zenith radish
#

^

stuck furnace
#

Pretty nice actually.

zenith radish
#

It's cool

#

Nicer than C++

#

Also integrates well with other glib based C libraries

somber heath
#

!e py v = '123' 123 #int(v) print(type(v))

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'str'>
somber heath
#

Roughly equivalent code.

dense meadow
#

!e
v = '123'
123 #int(v)
print(type(v))
print(v)

wise cargoBOT
#

@dense meadow :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | <class 'str'>
002 | 123
dense meadow
#

see, no string

#

oly int

#

*only

somber heath
#

!e py print('123', type('123')) print(123, type(123))

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 123 <class 'str'>
002 | 123 <class 'int'>
mild quartz
dense meadow
#
new_day = input('Enter #of lemonades for new day: ')
sales_w2.append(int(new_day))
sales.extend(sales_w1)
sales.extend(sales_w2)
#

got it

#

thanks opal

somber heath
#

@dense meadow Now try giving it something that isn't a number.

full salmon
somber heath
#

Mhm.

dense meadow
#

ValueError: invalid literal for int() with base 10: 'yolo'

somber heath
#

random.shuffle is an example of an in-place operation.

ivory horizon
dense meadow
#

oh ok

#

thanks opal

#

gtg

stuck furnace
#

Erm, sure

#

I'm supposed to be installing a smoke alarm, but I'll do it after this.

full salmon
swift valley
rugged root
#

Give in to the laziness

#

You know you want to

stuck furnace
#

I think we have a similar situation in the UK right?

#

Ah right, I don't think I even noticed that.

#

Yep, I didn't

somber heath
#

!e py import random my_list = list(range(10)) print(my_list) result = random.shuffle(my_list) print(result) print(my_list)@full salmon

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
002 | None
003 | [2, 9, 1, 7, 5, 6, 8, 0, 3, 4]
stuck furnace
#

I think I'm a bit test-wise when it comes to these problems, because I've done so many of them.

#

Gtg 👋

rugged root
swift valley
#

A days wait ain't gonna kill me

rugged root
#

Wait you really took tomorrow off to play?

ivory horizon
zenith radish
#

here

rugged root
#

Such a badass

#

I genuinely don't think I'd have the courage to do that

full salmon
somber heath
#

int is a returning operation, even though all calls that complete return something.

#

That's more of a colloquial designation.

full salmon
somber heath
#

An object of type int, yes

#

Unless an exception is raised or whatever.

rugged root
#

!e

ham = print("I return None")
print(ham)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | I return None
002 | None
rugged root
#

!e

def spam():
  2 + 2

pork = spam()
print(pork)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

None
swift valley
#

and we're really not that busy

somber heath
#

@full salmon See if you can turn on Krisp.

ivory horizon
zenith radish
#
// Auto-generated code below aims at helping you parse
// the standard input according to the problem statement.
program Answer;
{$H+}
uses sysutils, strutils, classes, math;

// Helper to read a line and split tokens
procedure ParseIn(Inputs: TStrings) ;
var Line : string;
begin
    readln(Line);
    Inputs.Clear;
    Inputs.Delimiter := ' ';
    Inputs.DelimitedText := Line;
end;

var
    N : Int32;
    i : Int32;
    Inputs: TStringList;
begin
    Inputs := TStringList.Create;
    ParseIn(Inputs);
    N := StrToInt(Inputs[0]);

    writeln(DupeString('#', N));
    for i:= 1 to N-2 do
    begin
        writeln('#' + DupeString(' ', N-2) + '#');
    end;
    writeln(DupeString('#', N));


    flush(StdErr); flush(output); // DO NOT REMOVE
end.```
#
    writeln(DupeString('#', N));
    for i:= 1 to N-2 do
    begin
        writeln('#' + DupeString(' ', N-2) + '#');
    end;
    writeln(DupeString('#', N));```
rugged root
#

@silent sequoia Yo

#

How's it goin'

ivory horizon
#

starmap

rugged root
somber heath
rugged root
wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

granite plank
#
1 of 2
noun
dis·​cord ˈdi-ˌskȯrd 
Synonyms of discord
1
a
: lack of agreement or harmony (as between persons, things, or ideas)
… must we fall into the jabber and babel of discord while victory is still unattained?
—Sir Winston Churchill
b
: active quarreling or conflict resulting from discord among persons or factions : STRIFE
marital discord
discord between the two parties
2
a music
(1)
: a combination of musical sounds that strikes the ear harshly
(2)
: DISSONANCE
The song ends on a discord.
b
: a harsh or unpleasant sound```
barren crown
#

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

rugged root
rugged root
#

@terse needle Yo

stark knot
#

Good evening guys, I am stuck with some web-dev problem, anyone is free?

rugged root
#

What's the issue?

#

Broad strokes

stark knot
#

I was making a sidebar and I did make it just fine with normal HTML, CSS and BS5.
But I can't figure out how can I use the white spaces on the rest of the screen to show contents(graphs/charts/etc)

somber heath
#
class Stereo:
    pass```@Mr.Hemlock#2740
granite plank
terse needle
granite plank
#

Rejected.

#

Lisp is an atrocity.

terse needle
somber heath
#

!e py class MyClass: pass print(type(MyClass))

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'type'>
terse needle
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.pythondiscord.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
#

@pure sun Sup. Sorry, I typically don't add people as friends until I get to know them a bit better

somber heath
wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

[<class '__main__.MyClass'>, <class 'object'>]
pure sun
stark knot
#

That Hyena joke took me ages to get

rugged root
gentle flint
rugged root
#

!e

ham = object()
print(type(ham))
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

<class 'object'>
gentle flint
#

A gimlet is a hand tool for drilling small holes, mainly in wood, without splitting. It was defined in Joseph Gwilt's Architecture (1859) as "a piece of steel of a semi-cylindrical form, hollow on one side, having a cross handle at one end and a worm or screw at the other".A gimlet is always a small tool. A similar tool of larger size is called...

rugged root
#

Well named, that

slate light
rugged root
slate light
kind wharf
#

Why do I need different slashes in Windows to give path -

I have the following code - filtered_df = pd.read_csv("D:\get_something\/final_df

fierce stratus
#

I use ubuntu )

slate light
#

i use mint

kind wharf
#

I just want to make sure that \/ was okay

fierce stratus
#

I think you can move the csv file or your script file

kind wharf
molten bronze
#

hi i have doubt about pyspark error

kind wharf
#

I just want to make sure that \/ was okay

rugged root
#
filtered_df = pd.read_csv(r"D:\get_something\final_df")
# or
filtered_df = pd.read_csv("D:\\get_something\\final_df")
#

!d pathlib

wise cargoBOT
#

New in version 3.4.

Source code: Lib/pathlib.py

This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.

../_images/pathlib-inheritance.png If you’ve never used this module before or just aren’t sure which class is right for your task, Path is most likely what you need. It instantiates a concrete path for the platform the code is running on.

Pure paths are useful in some special cases; for example:

stuck furnace
#

😻

#

Follow me, human

#

She's going to stand there and change her mind now lol

#

My cat always does that

#

Wait, are you talking about pathlib.Path vs pathlib.PurePath? pithink

#

Cacio e pepe 😄

#

I'm pretty sure eating that much pepper will give you kidney stones

#

;-;

rugged root
#

Back in a jiffy

#

@slate light I'll write out my usual example when I get back

slate light
#

okay

fierce stratus
#

is there a way to enable mic before 3 days? I just joined

stuck furnace
fierce stratus
stuck furnace
#

I always do shapes or animals 😄

fierce stratus
#

Animal -> Dog -> Shepherd

rugged root
#

!e

class Student:
  def __init__(self, name: str, age: int, favorite_subject: str):
    self.name = name
    self.age = age
    self.favorite_subject = favorite_subject

  def introduce(self):
    print(f"Hello, I'm {self.name}, and I am {self.age} years old.")

sally = Student("Sally", 10, "Science")
billy = Student("Billy", 8, "History")

sally.introduce()
billy.introduce()
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hello, I'm Sally, and I am 10 years old.
002 | Hello, I'm Billy, and I am 8 years old.
fierce stratus
#

it might sound as dump question, but is there diff between methods and functions?

thorn wharf
#

yes

#

but very small

fierce stratus
#

except method is under class, and func is not

thorn wharf
#

methods are functions that are defined in classes

#

nope other than that, they are the same

rugged root
#
Student().introduce(sally)
terse needle
#

!e

class Student:
  def __init__(self, name: str, age: int, favorite_subject: str):
    self.name = name
    self.age = age
    self.favorite_subject = favorite_subject

  def introduce(self):
    print(f"Hello, I'm {self.name}, and I am {self.age} years old.")

sally = Student("Sally", 10, "Science")
billy = Student("Billy", 8, "History")

Student.introduce(sally)
billy.introduce()
wise cargoBOT
#

@terse needle :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hello, I'm Sally, and I am 10 years old.
002 | Hello, I'm Billy, and I am 8 years old.
rugged root
#

RIght right

#

!e

class Person:
  def __init__(self, name: str, age: int):
    self.name = name
    self.age = age

  def say_hello(self):
    print(f"Yo, I'm {self.name}")
    

class Student(Person):
  def __init__(self, name: str, age: int, favorite_subject: str):
    super().__init__(name, age)
    self.favorite_subject = favorite_subject

  def introduce(self):
    print(f"Hello, I'm {self.name}, and I am {self.age} years old.")


sally = Student("Sally", 10, "Science")
billy = Person("Billy", 8)

sally.say_hello()
sally.introduce()

billy.say_hello()
billy.introduce()
wise cargoBOT
#

@rugged root :x: Your 3.11 eval job has completed with return code 1.

001 | Yo, I'm Sally
002 | Hello, I'm Sally, and I am 10 years old.
003 | Yo, I'm Billy
004 | Traceback (most recent call last):
005 |   File "/home/main.py", line 26, in <module>
006 |     billy.introduce()
007 |     ^^^^^^^^^^^^^^^
008 | AttributeError: 'Person' object has no attribute 'introduce'
stuck furnace
#

You can think of a subclass as a specialisation of its parent class. A class represents a set of objects with similar attributes/behaviour. Subclass is like subset.

fierce stratus
#

does super().init(name, age) -> means, take name and age from Person and use it on Student class?

stuck furnace
#

Some of the classes in collections.abc have mix-ins.

#

Brb

rugged root
#

!d collections.abc

wise cargoBOT
#

New in version 3.3: Formerly, this module was part of the collections module.

Source code: Lib/_collections_abc.py

This module provides abstract base classes that can be used to test whether a class provides a particular interface; for example, whether it is hashable or whether it is a mapping.

An issubclass() or isinstance() test for an interface works in one of three ways.

  1. A newly written class can inherit directly from one of the abstract base classes. The class must supply the required abstract methods. The remaining mixin methods come from inheritance and can be overridden if desired. Other methods may be added as needed:
fierce stratus
#

@rugged root do you think, you could copy paste this code here?

#

thanks

#

I am in voice, can hear, but cannot talk since I joined today

#

ok ok

rugged root
#
class Person:
  def __init__(self, name: str, age: int):
    self.name = name
    self.age = age

  def say_hello(self):
    print(f"Yo, I'm {self.name}")


class Student(Person):
  def __init__(self, name: str, age: int, favorite_subject: str):
    super().__init__(name, age)
    self.favorite_subject = favorite_subject

  def introduce(self):
    print(f"Hello, I'm {self.name}, and I am {self.age} years old.")

  def say_hello(self):
    print("Hello, bro")
fierce stratus
#

thanks!

#

btw, so we cannot send people who is seeking for help to go to ChatGPT and ask it, does it mean that at the moment ChatGPT is not a ideal choice of source to learn?

#

okay, I see

stuck furnace
#

Yeah it tends to fail quite badly currently when it comes to tasks that require sequential reasoning. It also has a tendency to make stuff up that "looks right" if it doesn't know the answer to a question.

#

Try asking it to multiply together two random 6-digit numbers, and it will probably just make something up.

#

It's not bad as a learning tool however. For example, you could ask it to give you some quiz questions on a topic.

fierce stratus
#

ok ok

stuck furnace
#

I think GPT-4 is significantly better however.

fierce stratus
#

some people say that with GPT you may be faster

#

but on other hand it makes it easy to use rather than google

stuck furnace
fierce stratus
#

thanks!

#

@rugged root

stuck furnace
#

Gtg 👋

rugged root
#

!d fcntl

wise cargoBOT
#

This module performs file control and I/O control on file descriptors. It is an interface to the fcntl() and ioctl() Unix routines. For a complete description of these calls, see fcntl(2) and ioctl(2) Unix manual pages.

Availability: not Emscripten, not WASI.

This module does not work or is not available on WebAssembly platforms wasm32-emscripten and wasm32-wasi. See WebAssembly platforms for more information.

All functions in this module take a file descriptor fd as their first argument. This can be an integer file descriptor, such as returned by sys.stdin.fileno(), or an io.IOBase object, such as sys.stdin itself, which provides a fileno() that returns a genuine file descriptor.

river thistle
#

https://youtu.be/P4vL1HKIcKY

A new programming language, Mojo, builds on top of Python and is designed specifically for AI applications. They claim it’s up to 35000 times faster than Python. So let’s take a quick first look at it.

Website: https://www.modular.com/mojo

A new programming language, Mojo, builds on top of Python and is designed specifically for AI applications. They claim it’s up to 35000 times faster than Python. So let’s take a quick first look at it.

Keynote: https://youtu.be/-3Kf2ZZU-dg
Website: https://www.modular.com/mojo
Modular Discord: https://discord.gg/modular

requirements.txt: https...

▶ Play video

Mojo combines the usability of Python with the performance of C, unlocking unparalleled programmability of AI hardware and extensibility of AI models.

somber heath
#

@whole bear 👋

whole bear
#

yoo

#

im bored

#

hop on to live-coding you can chit chat

#

@somber heath

#

my mics seems to not work anyways

somber heath
#

I'm not that interested in live coding

whole bear
#

oh ok

#

your about me is real good bro

#

:>>

somber heath
#

@violet plaza 👋

whole bear
#

@violet plaza

violet plaza
#

i def need help

#

before i throw myself out this window

#

i need to recreate this shit

#

with turtle

#

fuck turtle

#

easy way to cry

#

umm

#

offsets

#

obviously

#

"Solidify and demonstrate your understanding and application of using functions to break a problem into pieces."

#

i honestly wouldnt mind hopping on a call

#

yeah

#

no

#

maybe

#

i can obviously make a rectangle

#
import random


def drawrect(size):
    for i in range(2):
        turtle.forward(size)
        turtle.right(90)
        turtle.forward(50)
        turtle.right(90)
    return


def drawrow(brick_count, offset):
    for j in range(brick_count):
        turtle.forward(brick_count)
        turtle.forward(100)
        turtle.right(90)
        turtle.forward(50)
        turtle.right(90)



def main():
    drawrect(100)
    drawrow(100)


main()``` my current code
#

honestly im still confused about returns

#

made a new function

#

of the big one?

#

so should i do turtle.penup and goto()

#

thats a bit annoying

#

im doing that first

#

to start at the top

whole bear
#

i dont know coding, its arabic for me lol

#

yeah

violet plaza
#
import random

def big_square():
    turtle.penup()
    turtle.goto(1,300)
    turtle.pendown()
    turtle.right(0)
    turtle.forward(350)
    turtle.back(700)

big_square()```
#

okay good start

whole bear
#

you know, i tried once but eventually gave up due to school. i am surely after my degree

violet plaza
#

ohhhh

#

okay

#

ill do that

#
import random

def big_square():
    turtle.penup()
    turtle.goto(350,1)
    turtle.pendown()
    turtle.right(90)
    turtle.forward(300)
    turtle.backward(600)
    turtle.exitonclick()
big_square()```
#

hows this

whole bear
#

hmmm, wow

#

its hard to get in all though rn

violet plaza
#

okay how would i start it at the left side

somber heath
#
1   4
2   3```
whole bear
#

@lunar haven speak, i wont my headphone to get its max limit voice

#

wowwww

#

goosebumps again

#

noo, i sware

somber heath
whole bear
#

i dont care accent

violet plaza
#

i did it

whole bear
#

i have an asian accent then lol

violet plaza
#

yup

#

nope

#

im starting from scratch right now

somber heath
#
range(stop)
range(start, stop)
range(start, stop, step)```
#

!e py for i in range(50, 60): print(i)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 50
002 | 51
003 | 52
004 | 53
005 | 54
006 | 55
007 | 56
008 | 57
009 | 58
010 | 59
somber heath
#

!e py for i in range(10): print(i)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
somber heath
#

!e py for i in range(0, 20, 2): print(i)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 0
002 | 2
003 | 4
004 | 6
005 | 8
006 | 10
007 | 12
008 | 14
009 | 16
010 | 18
whole bear
#

wt ya dng gofek

violet plaza
whole bear
#

hmm

violet plaza
#

okay

#

interesting

#

but its tricky with turtle

wise cargoBOT
#

@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2
002 | 4
003 | 6
004 | 8
somber heath
#

!e py for i in range(9, -1, -1): print(i)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 9
002 | 8
003 | 7
004 | 6
005 | 5
006 | 4
007 | 3
008 | 2
009 | 1
010 | 0
somber heath
#

!e py for i in range(9, 0, -1): print(i)

violet plaza
#
    turtle.penup()
    turtle.goto(-350,1)
    turtle.exitonclick()``` for this im trying to figure out how to make the pen go to a corner of the screen
wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 9
002 | 8
003 | 7
004 | 6
005 | 5
006 | 4
007 | 3
008 | 2
009 | 1
violet plaza
#

i did it

#

i put 300 instead of 1

#
    turtle.penup()
    turtle.goto(-350,300)
    turtle.exitonclick()```
#

this works right?

#

lol

#

i appreciate you not giving out the answers but hints

#

im very afraid lol

#

thats a whole new story

#

true, should i give this function a variable?

#

positioning

#

so line pos

#

needing division

#
import random

def big_square():
    turtle.penup()
    turtle.goto(-350,300)
    turtle.pendown()
    turtle.right(90)
    turtle.forward(600)

    turtle.penup()
    turtle.goto(350, -300)
    turtle.pendown()
    turtle.right(180)
    turtle.forward(600)

    turtle.exitonclick()



big_square()```
#

i did that sequence you suggested

#

no for class

#

assignment

#

old ass games

#
def big_square():
    turtle.penup()
    turtle.goto(-350,300)
    turtle.pendown()
    turtle.right(90)
    turtle.forward(600)

    turtle.pendown()
    turtle.goto(350, -300)
    turtle.pendown()
    turtle.right(180)
    turtle.forward(600)
    turtle.left(90)
    turtle.forward(700)

    turtle.exitonclick()



big_square()``` it works im not complaining
#

i would like to put these in a variable but im not sure how id go on about that

#

so i made a def vertlines(): what variables should i put into the parameters

#

you think id need any

somber heath
#

!e ```py
def func(a):
print(f'You gave me {a}.')

func('"Hello, world."')```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

You gave me "Hello, world.".
somber heath
#

!e ```py
def func(a, b, c):
print(a)
print(b)
print(c)

func(1, 2, 3)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
violet plaza
#
        turtle.penup()
        turtle.backward(100)
        turtle.pendown()


big_square()
vertlines()```
dense meadow
#

HELLO

violet plaza
#
        



big_square()```
#

sooo something a bit like this

somber heath
#

!e ```py
def func(arg=None):
print(arg)

func()
func(123)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | None
002 | 123
whole bear
#
-----------------------------------------------------
|[2 segments]|[2 segments]|[2 segments]|[2 segments]|
-----------------------------------------------------
[1 segment][2 segments]|[2 segments]|[1 segment]  
-----------------------------------------------------
somber heath
#

!e ```py
def func(a=0, b=1, c=2, d=3):
print(f'{a = }, {b = }, {c = }, {d = }')

func()
func(10)
func(10, 20)
func(10, 20, 30)
func(10, 20, 30, 40)```

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | a = 0, b = 1, c = 2, d = 3
002 | a = 10, b = 1, c = 2, d = 3
003 | a = 10, b = 20, c = 2, d = 3
004 | a = 10, b = 20, c = 30, d = 3
005 | a = 10, b = 20, c = 30, d = 40
somber heath
#

Don't worry about this.

#

You don't have to know it right now.

violet plaza
#

okay

somber heath
#

What this is showing is that you can have a function you can call with the arguments set to defaults so you don't need to specify them in the call.

#

But you can if you want to.

whole bear
#

anyone play games here?

violet plaza
#
    turtle.forward(width)
    turtle.right(height)
    turtle.forward(width)



def main():

    big_square()
brick_size(height=50, width=100)```
somber heath
#

I've got to go for dinner, now.

violet plaza
#

umm

#

okay

graceful kelp
#

Can someone help me understand this code plz? 🫠

violet plaza
#

thanks

whole bear
graceful kelp
warm jackal
#

Would you guys say "detrimental" is something absolute? Irreconcilable?

Or is the common understanding/connotations you're familiar with more temporary/reconcilable?

somber heath
somber heath
#

@pearl vigil 👋

#

@calm egret 👋

calm egret
#

just left

open lily
#

Hello

somber heath
#

@fierce stratus 👋

fierce stratus
#

hello

#

just joined, not allowed to talk

open lily
#

I have a simple question

iqr = df.quantile(0.75) - df.quantile(0.25)
up_bound = df.quantile(0.75) + (iqr * 1.5)
low_bound = df.quantile(0.25) - (iqr * 1.5)

up_bound
low_bound

This filters creates the boundaries and determine which are the outliers, and I get this output

#

Only humidity, wind speed and pressure has severe outliers so if I want to drop my data according to the outlier condition only applied to these columns, how should I write my code?

#

Otherwise It's going to drop based on day as well so I don't want that

fierce stratus
#

@willow lynx dont say bad about the current job or company

#

overall I think its better to be positive in interview

#

do think that answer like "I left company because they did not pay me enough" is good one?

#

oh ok, so you can say "I left company because the did not pay me enough" but in polite way

#

like paraphrase it so it sounds polite

#

YESSS

#

well dressed up, will benefit for sure

#

)))

somber heath
#

!e py d = dict((v, i) for i, v in enumerate('abcdefghijklmnopqrstuvwxyz', 1)) print(d)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

{'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9, 'j': 10, 'k': 11, 'l': 12, 'm': 13, 'n': 14, 'o': 15, 'p': 16, 'q': 17, 'r': 18, 's': 19, 't': 20, 'u': 21, 'v': 22, 'w': 23, 'x': 24, 'y': 25, 'z': 26}
fierce stratus
#

what if i+1

#

d = dict((v, i+1) for i, v in enumerate('abcdefghijklmnopqrstuvwxyz'))

somber heath
#
def func(arg):
    return ord(arg) - 96```
#

!e py d = dict((chr(i), i - 96) for i in range(97, 123)) print(d)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

{'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9, 'j': 10, 'k': 11, 'l': 12, 'm': 13, 'n': 14, 'o': 15, 'p': 16, 'q': 17, 'r': 18, 's': 19, 't': 20, 'u': 21, 'v': 22, 'w': 23, 'x': 24, 'y': 25, 'z': 26}
graceful grail
#
s1 = input()
s2 = input()

def p_test(s1, s2):
    s1_val = 0
    s2_val = 0
    for i in s1.lower():
        s1_val += ord(i) - 96
    for i in s2.lower():
        s2_val += ord(i) - 96
    if s1_val > s2_val:
        return "1"
    if s1_val < s2_val:
        return "-1"
    else:
        return "0"

print(p_test(s1, s2))
#
aslkjlkasdd
asdlkjdajwi
somber heath
#

str.casefold

#

!epy print('abc' < 'def')

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
whole bear
#

helo guys

somber heath
#

@graceful grail

fierce stratus
#

oh Hello @rugged root

graceful grail
#
s1 = input()
s2 = input()

sl = sorted([s1.lower(), s2.lower()])

if sl[0] == s1.lower():
    out = "-1"
if sl[0] == s2.lower():
    out = "1"
if s1.lower() == s2.lower():
    out = "0"

print(out)
#
s1 = input()
s2 = input()

sl = sorted([s1.lower(), s2.lower()])

def petyaStrings(s1, s2):
    if sl[0] == sl[1]:
        return 0
    elif sl[0] == s1.lower():
        return -1
    elif sl[0] == s2.lower():
        return 1

print(petyaStrings(s1, s2))
#
s1 = input()
s2 = input()

strlist = sorted([s1.lower(), s2.lower()])

def petyaStrings(s1, s2):
    if strlist[0] == strlist[1]:
        return 0
    elif strlist[0] == s1.lower():
        return -1
    elif strlist[0] == s2.lower():
        return 1

print(petyaStrings(s1, s2))
somber heath
#
def test(a, b):
    a, b = a.casefold(), b.casefold()
    if a < b:
        return -1
    elif a > b:
        return 1
    return 0```
graceful grail
#
a = input().casefold()
b = input().casefold()

def test(a, b):
    if a < b:
        return -1
    elif a > b:
        return 1
    return 0

print(test(a, b))
rugged tundra
rugged root
#

@fierce stratus Yo. Sorry, was driving. How's it going

fierce stratus
whole bear
#

i know one wait a minute

rugged root
#

🤙

#

@somber heath Found the finger call

whole bear
#

i dont find it 🥲

rugged root
slate light
rugged root
#

Fucking massive

somber heath
#

🥋🧎🐖👒

rugged root
rugged root
#

Okay last pig pic I promise

somber heath
#

@turbid sandal Feeling stupid is when learning to program is normal and happens to all of us, even down the track. Just keep reading documentation, doing research and when stuck, asking questions and taking breaks. If one problem gets you down, try attacking a different problem.

slate light
somber heath
#

Knowledge is synergistic. Knowing about one thing can provide you with a greater understanding of another.

#

As so when you come back to the previous problem, you might have fresh new skills to solve it.

rancid meteor
#

hello all! gays

graceful grail
#
m = input()

m = m.replace("+", "")
maths = sorted(m)
out = ""

for i in maths:
    if len(out) > 0:
        out += "+"
        out += i
    else:
        out = i

print(out)
rugged root
rancid meteor
rugged root
#

!e

string_input = "3+2+1"
sorted_ = sorted(string_input.split("+")).join("+")
print(sorted_)
#

!e
string_input = "3+2+1"
sorted_ = "+".join(sorted(string_input.split("+")))
print(sorted_)

wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

1+2+3
rugged root
#

!e

string_input = "3+2+1"
print(sorted(string_input))
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

['+', '+', '1', '2', '3']
safe tusk
#
string_input = "3+2+1"
print('+'.join(sorted(string_input.split("+"))))
rugged root
#

!e

string_input = "aAaaAA"
print(string_input[0].upper() + string_input[1:])
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

AAaaAA
graceful grail
#
word = input()

out = word.replace(word[0], word[0].upper())

print(out)
rugged root
#

Yep!

#

!timeit

string_input = "aAaaAA"
print(string_input[0].upper() + string_input[1:])
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 timeit job has completed with return code 0.

500000 loops, best of 5: 690 nsec per loop
graceful grail
#

!timeit ```
word = "aAaaAA"

out = word.replace(word[0], word[0].upper())

print(out)```

wise cargoBOT
#

@graceful grail :white_check_mark: Your 3.11 timeit job has completed with return code 0.

500000 loops, best of 5: 655 nsec per loop
graceful grail
slate light
#

a kitty cat whit a amour

rugged root
#

!stream 189200135278952450

wise cargoBOT
#

✅ @graceful grail can now stream until <t:1683902084:f>.

graceful grail
#
Time: 30 ms, memory: 0 KB
Verdict: WRONG_ANSWER
Input

xYaPxPxHxGePfGtQySlNrLxSjDtNnTaRaEpAhPaQpWnDzMqGgRgEwJxGiBdZnMtHxFbObCaGiCeZkUqIgBhHtNvAqAlHpMnQhNeQbMyZrCdElVwHtKrPpJjIaHuIlYwHaRkAkUpPlOhNlBtXwDsKzPyHrPiUwNlXtTaPuMwTqYtJySgFoXvLiHbQwMjSvXsQfKhVlOxGdQkWjBhEyQvBjPoFkThNeRhTuIzFjInJtEfPjOlOsJpJuLgLzFnZmKvFgFrNsOnVqFcNiMfCqTpKnVyLwNqFiTySpWeTdFnWuTwDkRjVxNyQvTrOoEiExYiFaIrLoFmJfZcDkHuWjYfCeEqCvEsZiWnJaEmFbMjDvYwEeJeGcKbVbChGsIzNlExHzHiTlHcSaKxLuZxX

Participant's output

XYaPXPXHXGePfGtQySlNrLXSjDtNnTaRaEpAhPaQpWnDzMqGgRgEwJXGiBdZnMtHXFbObCaGiCeZkUqIgBhHtNvAqAlHpMnQhNeQbMyZrCdElVwHtKrPpJjIaHuIlYwHaRkAkUpPlOhNlBtXwDsKzPyHrPiUwNlXtTaPuMwTqYtJySgFoXvLiHbQwMjSvXsQfKhVlOXGdQkWjBhEyQvBjPoFkThNeRhTuIzFjInJtEfPjOlOsJpJuLgLzFnZmKvFgFrNsOnVqFcNiMfCqTpKnVyLwNqFiTySpWeTdFnWuTwDkRjVXNyQvTrOoEiEXYiFaIrLoFmJfZcDkHuWjYfCeEqCvEsZiWnJaEmFbMjDvYwEeJeGcKbVbChGsIzNlEXHzHiTlHcSaKXLuZXX

Jury's answer

XYaPxPxHxGePfGtQySlNrLxSjDtNnTaRaEpAhPaQpWnDzMqGgRgEwJxGiBdZnMtHxFbObCaGiCeZkUqIgBhHtNvAqAlHpMnQhNeQbMyZrCdElVwHtKrPpJjIaHuIlYwHaRkAkUpPlOhNlBtXwDsKzPyHrPiUwNlXtTaPuMwTqYtJySgFoXvLiHbQwMjSvXsQfKhVlOxGdQkWjBhEyQvBjPoFkThNeRhTuIzFjInJtEfPjOlOsJpJuLgLzFnZmKvFgFrNsOnVqFcNiMfCqTpKnVyLwNqFiTySpWeTdFnWuTwDkRjVxNyQvTrOoEiExYiFaIrLoFmJfZcDkHuWjYfCeEqCvEsZiWnJaEmFbMjDvYwEeJeGcKbVbChGsIzNlExHzHiTlHcSaKxLuZxX

Checker comment

wrong answer 1st words differ - expected: 'XYaPxPxHxGePfGtQySlNrLxSjDtNnT...KbVbChGsIzNlExHzHiTlHcSaKxLuZxX', found: 'XYaPXPXHXGePfGtQySlNrLXSjDtNnT...KbVbChGsIzNlEXHzHiTlHcSaKXLuZXX'

obsidian dragon
#

!e
string_input = "aAaaAA"
print(string_input[0].upper() + string_input[1:])

wise cargoBOT
#

@obsidian dragon :white_check_mark: Your 3.11 eval job has completed with return code 0.

AAaaAA
slate light
#

my cat

rugged root
#

!d str.replace

wise cargoBOT
#

str.replace(old, new[, count])```
Return a copy of the string with all occurrences of substring *old* replaced by *new*. If the optional argument *count* is given, only the first *count* occurrences are replaced.
rugged root
#
out = word.replace(word[0], word[0].upper(), 1)
wise cargoBOT
#

@obsidian dragon :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     !e
003 |     ^
004 | SyntaxError: invalid syntax
obsidian dragon
#

!e

string_input = "xYaPxPxHxGePfGtQySlNrLxSjDtNnTaRaEpAhPaQpWnDzMqGgRgEwJxGiBdZnMtHxFbObCaGiCeZkUqIgBhHtNvAqAlHpMnQhNeQbMyZrCdElVwHtKrPpJjIaHuIlYwHaRkAkUpPlOhNlBtXwDsKzPyHrPiUwNlXtTaPuMwTqYtJySgFoXvLiHbQwMjSvXsQfKhVlOxGdQkWjBhEyQvBjPoFkThNeRhTuIzFjInJtEfPjOlOsJpJuLgLzFnZmKvFgFrNsOnVqFcNiMfCqTpKnVyLwNqFiTySpWeTdFnWuTwDkRjVxNyQvTrOoEiExYiFaIrLoFmJfZcDkHuWjYfCeEqCvEsZiWnJaEmFbMjDvYwEeJeGcKbVbChGsIzNlExHzHiTlHcSaKxLuZxX"
print(string_input[0].upper() + string_input[1:])
wise cargoBOT
#

@obsidian dragon :white_check_mark: Your 3.11 eval job has completed with return code 0.

XYaPxPxHxGePfGtQySlNrLxSjDtNnTaRaEpAhPaQpWnDzMqGgRgEwJxGiBdZnMtHxFbObCaGiCeZkUqIgBhHtNvAqAlHpMnQhNeQbMyZrCdElVwHtKrPpJjIaHuIlYwHaRkAkUpPlOhNlBtXwDsKzPyHrPiUwNlXtTaPuMwTqYtJySgFoXvLiHbQwMjSvXsQfKhVlOxGdQkWjBhEyQvBjPoFkThNeRhTuIzFjInJtEfPjOlOsJpJuLgLzFnZmKvFgFrNsOnVqFcNiMfCqTpKnVyLwNqFiTySpWeTdFnWuTwDkRjVxNyQvTrOoEiExYiFaIrLoFmJfZcDkHuWjYfCeEqCvEsZiWnJaEmFbMjDvYwEeJeGcKbVbChGsIzNlExHzHiTlHcSaKxLuZxX
willow gate
#

@somber heath Hello

rugged root
#

Opal says Hello

slate light
graceful grail
#
username = input()

if len(set(username)) % 2 == 0:
    print("CHAT WITH HER!")
else:
    print("IGNORE HIM!")
rugged root
#

!stream 189200135278952450 30M

wise cargoBOT
#

✅ @graceful grail can now stream until <t:1683904729:f>.

slate light
rugged root
#

get_rect()

turbid sandal
#

@rugged root could i have stream access to show you my problem

rugged root
#

Here in a moment

turbid sandal
#

ok thanks

slate light
#

./webui.sh --medvram

noble solstice
#

is solution n-1?

rugged root
#

Doesn't seem to be

noble solstice
#

i think it's sliding window problem

rugged root
#

That's what I thought

#

Ohhhhhhhhhhhhhhhhhh

#

I think it just clicked

#

!stream 1053732836693258391

wise cargoBOT
#

✅ @turbid sandal can now stream until <t:1683904350:f>.

rugged root
#

Okay yeah, it is sliding window

noble solstice
#

Great!

turbid sandal
rugged root
#

Actually you may not need to use the sliding window

noble solstice
#

we can use stack may be

#

check stack[-1] element is equal to the ith element increase count by 1 else append

#
c=[0]
d=0
a="RRG"
for i in a:
    if i == c[-1]:
        d+=1
    else:c.append(i)
print(d)``` Try this!
narrow salmon
rugged root
#

!e

problem = "RGGBG"

total_removed = 0
skip_flag = False

for i in range(len(problem)-1):
  if skip_flag:
    skip_flag = False
    continue
  if (
    (problem[i] == 'R' and problem[i+1] != 'G') or
    (problem[i] == 'G' and problem[i+1] != 'B') or
    (problem[i] == 'B' and problem[i+1] != 'R')
  ):
    skip_flag = True
    total_removed += 1

print(total_removed)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

2
rugged root
narrow salmon
rugged root
#

!e

c=[0]
d=0
a="RGGBG"
for i in a:
    if i == c[-1]:
        d+=1
    else:c.append(i)
print(d)
wise cargoBOT
#

@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.

1
rugged root
#

@noble solstice I think yours is missing the part where it is needing to be in the RGB pattern

noble solstice
rugged root
#

Those are all the test cases it has

#

The last one it has shows the needed pattern the best, I think

noble solstice
#

but i don't use codeforces

#

u can send here some test cases with input/output

rugged root
#

Sure sure

#
Input:
3
RRG
Output:
1

Input:
5
RRRRR
Output:
4

Input:
4
BRGB
Output:
0
#

Those are all the listed test cases. I haven't submitted mine either, not signed up

rugged tundra
noble solstice
#

but my code is working on listed test case

rugged root
#

Yeah, I only grabbed the one that leet had on one of his failed test case

#

Which is the input I used

noble solstice
#

and expected output?

rugged root
#

2

#

So in order to meet the "RGBRGBRGB..." requirement

honest pier
#

||```py
print(sum(len(list(v))-1 for k, v in import('itertools').groupby(input())))

kindred granite
#

!e

a="RGGBG"
print(sum(a[i] == a[i-1] for i in range(1, len(a))))
wise cargoBOT
#

@kindred granite :white_check_mark: Your 3.11 eval job has completed with return code 0.

1
noble solstice
kindred granite
#

What does p&c mean

noble solstice
#

permutation and combination!

lime vale
kindred granite
graceful grail
#

!timeit ```
length = 3
rgb = RRG

count = 0

rgblist = []
for i in rgb:
rgblist.append(i)
while length > 1:
if rgblist[(-length)] == rgblist[(-length + 1)]:
count += 1
length -= 1

honest pier
#

it looks like it does

graceful grail
#

!timeit ```
length = 3
rgb = "RRG"

count = 0

rgblist = []
for i in rgb:
rgblist.append(i)
while length > 1:
if rgblist[(-length)] == rgblist[(-length + 1)]:
count += 1
length -= 1

print(count)

kindred granite
#

Wait a second...

wise cargoBOT
#

@graceful grail :white_check_mark: Your 3.11 timeit job has completed with return code 0.

200000 loops, best of 5: 1.17 usec per loop
kindred granite
#

Should use pairwise

obsidian dragon
#

z=0
for i in list
if list[i] == list[i+1]
z+=1

kindred granite
#

!e

from itertools import pairwise
s="RGGBG"
print(sum(a == b for a, b in pairwise(s)))
wise cargoBOT
#

@kindred granite :white_check_mark: Your 3.11 eval job has completed with return code 0.

1
rugged root
#

Nope, mine fucked up

graceful grail
#

I am doing it minimal imports

#

trying to learn the logic as much as the python.

honest pier
#

@ivory horizon please use push to talk

kindred granite
graceful grail
kindred granite
#

!e

s="RGGBG"
count = 0
i = 1
while i < len(s):
  count += s[i] == s[i-1]
  i += 1
print(count)
graceful grail
#

previous question was ```python
length = int(input())
rgb = input()

count = 0

while length > 1:
if rgb[(-length)] == rgb[(-length + 1)]:
count += 1
length -= 1

print(count)

kindred granite
#

me when I didn't change i

wise cargoBOT
#

@kindred granite :white_check_mark: Your 3.11 eval job has completed with return code 0.

1
noble solstice
rugged root
#

My solution was dumb

#

I'll try and fix it later

noble solstice
#

Nope!

rugged root
#

I iz teh dumb

night violet
#

no

ivory horizon
#

!e
a,b =4, 9 ans = 0 while a <= b: ans += 1 a *= 3 b *= 2 print(ans)

wise cargoBOT
#

@ivory horizon :white_check_mark: Your 3.11 eval job has completed with return code 0.

3
rugged root
#

!stream 189200135278952450 30M

wise cargoBOT
#

✅ @graceful grail can now stream until <t:1683908709:f>.

honest pier
#

||```py
A, B = map(int, input().split())
print(len(list(
itertools.takewhile(a <= b for a, b in map(lambda i: (A3**i, B2**i), range(10)))
)))

graceful grail
#

|

ivory horizon
#

| print("Test") |

graceful grail
#

||test||

honest pier
#

||```py
k, n, w = map(int, input().split())
c = k * (w * (w + 1)) // 2
print(max(c - n, 0))

minor raft
#

hello

rugged root
#

How's it going

ivory horizon
#

cost - k + 2k + 3k + .... + ik
simplify k (1 + 2 + 3+ 4+ ... i)
k (n * (n + 1) // 2)

noble solstice
#

Math!

#

we can alsp use

for i in range(1,bananas+1):
    total_money=total_money-i*price
print(abs(total_money))```
#

and use if else for condition

noble solstice
honest pier
#

?

noble solstice
#

time complexity of both?

ivory horizon
#

o(n) for the one which you shared and 0(1) for the above

noble solstice
#

You can share next question!

#

here!

gleaming lotus
#

how can i speak in this server

#

?

rugged root
#

That'll tell you what you need to know about the voice gate

ivory horizon
#

O(k) - OK

noble solstice
#

bro anyone share me the question link?

rugged root
#

Sure one sec

noble solstice
#

can i get one more test case

#

apart from listing

ivory horizon
#

18
ans - 4

rugged root
#

I forgot I can drag myself

noble solstice
#
print(a//6+1)```
rugged root
#

2 pipes

ivory horizon
#

||`a = int(input())
ans = 0

for d in [5, 4, 3, 2, 1]:
temp = a // d
ans += temp
a -= d * temp
if a <= 0:
break
print(ans)`||

noble solstice
honest pier
#

||```py
t = divmod(int(input()), 5)
print(t[0] + bool(t[1]))

rugged root
#

How'd you get that video of me

#

I just had an amazing thought

#

InstaGlam

somber heath
#

Hugo Weaving, in case anyone was unaware.

rugged root
#

No he's not

#

Not in that clip anyway

#
Param(
   $Path
)
If (-Not $Path -eq '') {
   New-Item $Path
   Write-Host "File created at path $Path"
} Else {
   Write-Error "Path cannot be empty"
}
noble solstice
#

share the question here!

honest pier
rugged root
#

!stream 367647874571436032 1M

wise cargoBOT
#

✅ @ivory horizon can now stream until <t:1683909658:f>.

noble solstice
graceful grail
honest pier
ivory horizon
graceful grail
#
word = input()

uppers = 0
downers = 0
# regular comment
for i in word: # stupid inline comment
    if i.isupper():
        uppers += 1
    else:
        downers += 1

if uppers > downers:
    out = word.upper()
else:
    out = word.lower()

print(out)
noble solstice
#
s="HoUSe"
a = sorted(s)
#print(a)
for i in range(len(a)):
    if a[i].islower():
        u = len(a[:i])
        l = len(a[i:])
        #print(u)
        #print(l)
        if u>l:
            print(s.upper())
            break
        else:print(s.lower())
        break

    ```
honest pier
#

why sort

noble solstice
#

for uppercase and lowercase!

#

s="HoUSe"
['H', 'S', 'U', 'e', 'o']

honest pier
#

i guess that's an approach

noble solstice
#

idk may be!

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.pythondiscord.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
amber raptor
#

@rugged root powershell Get-ChildItem -Recurse | where {$_.Extension -contains @("qba","qbw")} | select name,lastmodified | export-csv -path "blah.csv"

#
Get-ChildItem -Recurse | where {$_.Extension -in @(".csv",".txt")} | select name,lastmodified```
#
LastAccessTimeUtc         Property       datetime LastAccessTimeUtc {get;set;}
LastWriteTime             Property       datetime LastWriteTime {get;set;}
LastWriteTimeUtc          Property       datetime LastWriteTimeUtc {get;set;}```
#

Get-Item sp500.csv | gm

#

sort

limpid umbra
#

onion article

#

divorce = escape

graceful kelp
#

Could someone plz explain what the 4th line is doing? 🫠

limpid umbra
#

live there = post box

dense ibex
#

Tldr you can combine strings in python using the + operator

somber heath
graceful kelp
somber heath
#

!d int

wise cargoBOT
#
int

class int(x=0)``````py

class int(x, base=10)```
Return an integer object constructed from a number or string *x*, or return `0` if no arguments are given. If *x* defines `__int__()`, `int(x)` returns `x.__int__()`. If *x* defines `__index__()`, it returns `x.__index__()`. If *x* defines `__trunc__()`, it returns `x.__trunc__()`. For floating point numbers, this truncates towards zero.

If *x* is not a number or if *base* is given, then *x* must be a string, [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes "bytes"), or [`bytearray`](https://docs.python.org/3/library/stdtypes.html#bytearray "bytearray") instance representing an integer in radix *base*. Optionally, the string can be preceded by `+` or `-` (with no space in between), have leading zeros, be surrounded by whitespace, and have single underscores interspersed between digits.
dense ibex
#

^^

graceful kelp
#

Oh

dense ibex
#

Btw you don’t need to call str

graceful kelp
#

I thought it's only work was to convert it to int

#

Thankss

dense ibex
#

Python will do that for you iirc

somber heath
#

The second argument is the base that int should treat the thing you give int as.

somber heath
#

!e py print(int('100101', 2))

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

37
dense ibex
limpid umbra
#

@rugged root will you be having mint julips and sitting on the back porch this weekend

graceful kelp
#

Got it

amber raptor
limpid umbra
#

is pycharm still a 300 Meg + install

#

bloat

#

sublime , what about notepadd++ ?

ivory horizon
#

ls -lR | grep -E '\.txt$|\.csv$' | awk '{ print $9"," $8 }' > file.csv

#

@rugged root does this do what you want something like this.

amber raptor
#

Get-ChildItem -Recurse | where {$_.Extension -in @(".csv",".txt")} | select name,lastmodified

limpid umbra
#

why not use a GUI to invoke BASH scripts or is that majorly obsolete idea

#

i though i just heard .. the ghost of Dame Edna

kindred granite
amber raptor
#

A unique multiplayer game built on a free Web API. The best sandbox platform to learn a new skill or apply your knowledge in a fun and meaningful way. Use any programming language with our RESTful API to control the most powerful fleet in universe.

kindred granite
#

but how it does that is what you can change with the base

ivory horizon
rugged root
ivory horizon
limpid umbra
#

pun = mind virus

graceful kelp
ivory horizon
#

People sometimes mistakenly conclude that if 20% of factors should get priority, then the other 80% can be ignored.

slate light
ivory horizon
#

bye bye gn
gonna give 20% to sleep

stuck furnace
#

Yeah I can't play first-person games

#

In general 😄

#

Third person is ok.

rugged root
#

Back in a jiffy

graceful grail
#

affirmative

stuck furnace
#

Have you seen that really realistic new game? That would make me motion sick in about 10 seconds.

#

Unrecord I think

slate light
#

Moore's Law

stuck furnace
#

Gonna go eat 👋

whole blade
#

Hello xD @somber heath