#voice-chat-text-0

1 messages · Page 607 of 1

thin shale
#

python html

hasty forge
#

书籍或线上教学

thin shale
#

php

#

有好的推荐吗

edgy cobalt
#

详细文字教程: https://morvanzhou.github.io/tutorials/

python 基础教学教程
python3 的安装. for Mac and Windows

Windows 安装附加要点:
设置环境变量:
1.找到安装路径, 默认 C:\Users*\AppData\Local\Programs\Python\Python35-32
2.我的电脑 - 属性 - 高级 - 环境变量 - 系统变量中的PATH为:
C:\Users*
\AppData\Local\Programs\Python\Python...

▶ Play video
thin shale
#

你们会都会哪些编程语言

edgy cobalt
#

点击该链接

hasty forge
#

Learning Python by Mark Lutz

#

But it's in English

thin shale
#

vpn很不安全吗?

hasty forge
#

我不会中文书

edgy cobalt
#

使用youtube链接,中文

#

详细文字教程: https://morvanzhou.github.io/tutorials/

python 基础教学教程
python3 的安装. for Mac and Windows

Windows 安装附加要点:
设置环境变量:
1.找到安装路径, 默认 C:\Users*\AppData\Local\Programs\Python\Python35-32
2.我的电脑 - 属性 - 高级 - 环境变量 - 系统变量中的PATH为:
C:\Users*
\AppData\Local\Programs\Python\Python...

▶ Play video
thin shale
#

你们觉得什么网络好一些

#

bypass firewall

hasty forge
#

中国有YouTube吗?

#

您可以使用良好的VPN绕过防火墙。

thin shale
#

电信

edgy cobalt
#

下载他的vpn,然后在youtube上观看视频

thin shale
#

ip会被封

whole bear
#

thin shale
#

Ip会被拦截

edgy cobalt
#

它不会

#

它是安全的

thin shale
#

为什么,

#

有专业的解释吗

#

你们有博客吗?

hasty forge
#

why,
Is there a professional explanation
Do you have a blog?

thin shale
#

你们有个人网站吗?

edgy cobalt
#

它的软件可以帮助您绕过防火墙

thin shale
#

CN2 CNGIA

edgy cobalt
#

VPN或虚拟专用网络允许您创建通过Internet到另一个网络的安全连接。 VPN可用于访问受区域限制的网站,保护您的浏览活动免遭公共Wi-Fi的窥视。 ...大多数操作系统都集成了VPN支持

hasty forge
#

在中国学习编程合法吗?

Is it legal to learn programming in China?

thin shale
#

cool

#

有好的学习资源吗?

hasty forge
#

我问是因为我们很难为您提供帮助。 你能向中国人寻求帮助吗? 他们会更好地帮助您。

I ask because it's difficult for us to help you. Can you ask help to Chinese people ? They will help you better.

edgy cobalt
#

好的,我的朋友会向您发送他的vpn,您可以连接到它以访问编程课程

#

ok, my friend will send you his vpn and you can connect to it to access programming lessons

hasty forge
#

@thin shale

#

How many hours do you work in a work week in USA ?

edgy cobalt
#

how many ppl use this website @hasty forge

hasty forge
#

Mmmh, We have few thousands customers I think

#

I don't know how many users

edgy cobalt
#

at the time its fine but

#

data stuffing on login page is possible

hasty forge
#

Oh, just read a mail from CEO, we get 1k new customers / month (and each customer gets us tens/hundreds of users). So it's much more than I thought xD

edgy cobalt
#

cracking accounts on that website currently near to impossible

hasty forge
#

I'm pretty sure our competitors already tried that

edgy cobalt
#

look up how data stuffing/'cracking' works

hasty forge
whole bear
#

test...

remote hearth
#

test...

whole bear
#

@idle river

tawdry vault
#

hello

#

my mic is muted

#

@left widget

#

i cant speak

#

so

wanton mango
severe pulsar
#

damn

clever pasture
#

looks so cool

fading thunder
#

All lives matter

errant helm
#

sigh

ionic rock
#

WOW

stable bough
#

😪

whole bear
#

uff

lethal fiber
stark steppe
arctic hedge
#

TIS-100 is an open-ended programming game by Zachtronics, the creators of SpaceChem and Infinifactory, in which you rewrite corrupted code segments to repair the TIS-100 and unlock its secrets. It’s the assembly language programming game you never asked for!The Tessellated Int...

Price

$6.99

Recommendations

2443

▶ Play video
dark seal
#

https://\github.com/GianisTsol

arctic hedge
lethal fiber
#
printSlow(
        "Lets look at your characters stats! (They are dependent on what class you pick!)", .5)
    printSlow(f"► Your Strength is: {mainChar.strength}")
    printSlow(f"► Your Agility is: {mainChar.agility}")
    printSlow(
        f"► Your Intelligence is: {mainChar.intelligence}")
    printSlow(f"► Your Charisma is: {mainChar.charisma}")
#
# Function to Type out Printed strings
def printSlow(fstr, waitTime=0, nextLine=True, typeSpeed=0.02, PADDINGAREA=PADDINGMIDDLE):
    global console_info
    console = begin.console
    console_info = console.get_console_info()
    for char in fstr:
        print(char, end='', flush=True)
        t.sleep(typeSpeed)
    t.sleep(waitTime)
    if nextLine == True:
        scroll_text_up(PADDINGAREA)
    return ''
balmy nymph
#

You probably don't need your global clause here :)

whole bear
#

@whole bear @sour gale Do either of you need help?

#

@whole bear Go ahead and explain your issue and I'll see what I can do

#

So you want to remove both when NORTH/SOUTH or EAST/WEST is there?

#

Can you show me what the final output should be?

#

@whole bear I heard you, can you respond to the above this

#

JUST WEST?

#

So it would be three sets being removed?

#

Lemme see if I get this right

#

You'd start with ["NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST"]

#

NORTH/SOUTH is removed, since they're opposites, which leaves you with:
["SOUTH", "EAST", "WEST", "NORTH", "WEST"]

#

SOUTH is fine, and then EAST/WEST is removed

#

Which leaves you with:
["SOUTH", "NORTH", "WEST"]
and then SOUTH/NORTH is removed

#

Alright, gotcha

#

and you said this is for what, again?

#

Ah, gotcha

#

Yeah, I've seen them

#

So you want something basic to start with, such as:

#

!e

a = ["NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST"]
previous = None
while True:
    for x, y in enumerate(a):
        print(x, y)
    break
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

001 | 0 NORTH
002 | 1 SOUTH
003 | 2 SOUTH
004 | 3 EAST
005 | 4 WEST
006 | 5 NORTH
007 | 6 WEST
whole bear
#

You can also approach lists backwords, which would be better if you're editing the list in-place

#

!e

a = [1,2,3,4,5,6,7,8,9]
print(a[::-1])
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

[9, 8, 7, 6, 5, 4, 3, 2, 1]
whole bear
#

Would reverse the list

#

Lemme show, one sec

#

!e

a = [1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9]
try:
    for x in a:
        if x % 3 == 0:
            print(x)
            print(x % 3 == 0)
            a.pop(a.index(x))
except IndexError:
    pass
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

001 | 3
002 | True
003 | 6
004 | True
005 | 9
006 | True
whole bear
#

Though, you'll see

#

!e

a = [1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9]
try:
    for x in a:
        if x % 3 == 0:
            print(x)
            print(x % 3 == 0)
            a.pop(a.index(x))
except IndexError:
    pass
print(a)
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

001 | 3
002 | True
003 | 6
004 | True
005 | 9
006 | True
007 | [1, 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9]
whole bear
#

Doesn't get all of them

#

!e

a = [1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9]
try:
    for x in a[::-1]:
        if x % 3 == 0:
            print(x)
            print(x % 3 == 0)
            a.pop(a.index(x))
except IndexError:
    pass
print(a)
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

001 | 9
002 | True
003 | 9
004 | True
005 | 6
006 | True
007 | 6
008 | True
009 | 3
010 | True
011 | 3
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/fucuquhowu

whole bear
#

Meanwhile, does

#

Which is why if you're manipulating a list while looping over it, do it backwards.

#

or make a new list while doing so

#

Yep

#

Indexes shift when you're removing them

#

Yes

#

So that should help out in your issue. 😄 👍

#

No problem at all!

whole bear
#

is this new

#

never seen this before

golden carbon
#

.

whole bear
#

@whole bear what?

#

i've never seen this channel before

whole bear
grizzled blaze
#

Hi

fossil pebble
#

here ?

nova solstice
#

Yep @fossil pebble

fossil pebble
#

yet i cant share screen in here

#

i could find how to do it in here

#

nah it is not finding

#

@nova solstice

balmy nymph
#

You can't share screen in this server

errant helm
#

yeah, only user event coordinators can do that

whole bear
visual leaf
#

I wanna play ;-;

errant helm
#

I wan you to be able to play too D:

#

s'why I'm moving to sundays

whole bear
#

@crystal fox sa, re, ga, ma, pa, dha, ni

#

@crystal fox do you play any other instrament other then gutar

#

@crystal fox ?

#

@errant helm i am learning the indian bamboo flute

#

@crystal fox do you play any other instrament other then gutar

#

i am very intrested in learning the flute

#

but i cant get a guru

#

how many strings does a gutar have?

#

Ok

#

you know the tanpura?

#

do you know?

#

.help

#

@errant helm there are so many channels on this server

errant helm
calm sage
#

@whole bear Please fix your background sound

whole bear
#

@errant helm do you know zakir hussain?

#

he is a great tabla player

calm sage
#

!warn 426988998297255946 "Please fix your sound"

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @whole bear.

whole bear
#

@calm sage Ok i am sorry

#

@errant helm by the way, what are you doing?

#

last time i was playing songs

#

so i am sorry

#

@errant helm are you in a studio?

#

because your voice sounds so clear

#

but i dont

#

i just have a laptop mic

#

what is your favorate song gdude?

#

gdude please dont cuss

#

i dont feel good when people cuss

#

that is why

calm sage
#

You're welcome to leave the voice channel

whole bear
#

are you angry at me KnowError?

calm sage
#

You're harassing gdude, please stop

whole bear
#

what does harassing mean?

calm sage
#

Please look it up

whole bear
#

i will google it myself

calm sage
#

We assume you understand basic English here

whole bear
#

no one tought me that word so i dont know

calm sage
#

That's fine, but please look it up and understand what I said

whole bear
#

You're harassing gdude, please stop
@calm sage Ok i am sorry

#

please dont cuss

#

i dont like it

calm sage
#

@whole bear If you don't like it, then please leave the voice channel

#

We allow swearing here

whole bear
#

Ok

#

Ok

#

i will

#

can i ask a question?

#

can i?

#

Oh

#

what is the programing language should i start learning first?

#

pyfon

calm sage
#

Python, naturally

whole bear
#

that or javascript

#

great

#

you know logdotzip?

calm sage
#

no

whole bear
#

why are there so many programing languages?

calm sage
#

the world is a big place and there are a lot of unique problems to solve

#

and artists like different ways of expressing themselves

whole bear
#

Ok

#

bye

calm sage
#

👋

whole bear
#

god bless you!

#

and may you enter the kingdom of god

visual leaf
#

ew

whole bear
#

what is 'ew'?

#

Ok dont mind

#

bye and please dont cuss

visual leaf
#

gotta dip

errant helm
#

Thanks for coming ❤️

whole bear
#

damn

whole bear
#

dang why are you guys so mean to him

#

such a nice soul

#

is there a hidden vc?

#

no lol

#

oh lol nvm

#

they were in vc a while ago lol

#

ah ok haha

high kindle
#

I am considering starting a YouTube channel , and post daily. Python courses, on computer vision, AI, and data science. What do you guys think?
I am 4 lingual,(Spanish, Portuguese, German, and learning English) but I guess I`ll have to choose one language

whole bear
#

I wouldn't mind a python course tbh
Cause I'm AWFUL at Python
Well, I mean... I started about 8 days ago

candid oyster
severe pulsar
#

what

broken marsh
#

does anyone know python here?

#

open the link

#

it is working

#

mine is opening

whole bear
whole bear
#

@high kindle sounds pretty good honestly, only thing I can see as an issue if you can't provide high quality videos. Like, if it isn't HD, bad microphone quality etc.

high kindle
#

@whole bear video quality HD or FHD ... but my mic it is not the best. Ill let you know and ask for feedback about sound quality

whole bear
#

alright sounds good @high kindle

whole bear
#

we cant talk @whole rover

#

oh ok

#

i just need a girlfriend

whole rover
#

Hello everyone, going to go live in Stream to demonstrate some Visual Studio Code stuff!

whole bear
#

whats happenign here

#

How ya doing

#

yeah its fine

#

its 🔥

#

🤯

quaint lagoon
whole rover
whole bear
#

oh damnnn

#

free socks les go

whole rover
whole bear
#

@whole bear free socks??

quaint lagoon
#

technology PogWOW

whole bear
#

From microsoft

#

Free socks and colouring books

#

socks as in like feet sock

#

its good

whole rover
#

did my wifi cut out

whole bear
#

occasionally stuttering

quaint lagoon
#

no

whole bear
#

but its fine other that than

#

@whole bear where can you get the socks??

whole rover
whole bear
#

joe its laggy rn for me

#

Same

whole rover
#

bad wifi, apologies

whole bear
#

wtf

#

what was that call spam then

trim yacht
whole rover
#

I'm at 261

whole bear
#

You could always record this and post to YT?

#

how'd you get the free socks @whole bear ?? like what do you have to do I am confusion 😂

#

i cant remember lol, ask Joe

whole rover
whole bear
#

we do be likein some free socks doe

#

What are you doing here?

#

I cant understand

#

its lagging a lot

tropic furnace
#

Hi!

#

You're lagging a little bit

whole rover
#

Apologies for the WiFi folks, I did think it would hold out

quaint lagoon
whole bear
#

😦

tropic furnace
#

😭

whole bear
tropic furnace
#

Can you drop your quality maybe?

trim yacht
whole bear
#

its unwatchable now

#

yeah, think hes running 1080p 30fps

tropic furnace
#

If you run into any issues with the labs, myself and @steel coral are around to answer questions either here or in the #python-virtual-labs channel in the Microsoft Python discord. https://discord.com/invite/b8YJQPx

#

the stream quality seems to be better! 🤞 that it holds out

trim yacht
#

So it forwards MS servers to localhost?

tropic furnace
#

that's a good question

#

I'm actually not sure nnjaioThinking

trim yacht
#

3.8

tropic furnace
#

I think it's 3.8 too

#

🙌

steel coral
#

👋

tropic furnace
whole rover
steel coral
#

it's like a breakpoint, except it logs instead of breaks

whole rover
#

Yes!

tropic furnace
#

I still get bit by that same issue when debugging all the time -- the variable not being defined yet.

#

I forget exactly what it's called and I'm not sure if it's available in code spaces, but have you tried "run to cursor"?

steel coral
#

run to cursor is great!

#

i like setting a breakpoint on main()

tropic furnace
#

I think you need to actively have a breakpoint triggered?

steel coral
#

and then running to spot in the program i want to debug

#

yes, will need a breakpoint to be triggered

tropic furnace
#

but you can go backwards too, not just forwards

#

you can also change the value of variables

#

it's pretty neat

whole rover
steel coral
#

These tools make it so much easier when learning Python, too. I wish more CompSci programs knew about / recommended VS Code over IDLE.

trim yacht
#

like 8 yrs?

tropic furnace
#

Initial release April 29, 2015

trim yacht
#

Ah well

tropic furnace
#

(according to google)

trim yacht
#

I thought it was around in 2012

tropic furnace
#

Hmm -- don't think so. Found a blog post from 2016 celebrating version 1.0, and making note of the initial launch from the year prior.

primal shadow
#

What's going on here?

#

Just saw something live and figured Icould learn something

tropic furnace
#

But I only started using it ~3 years ago

primal shadow
#

neato

trim yacht
#

I believe you, I probably mixed it up w/ a different editor

steel coral
tropic furnace
steel coral
#

200 USD (or rough currency equivalent)

#

a number of services are free for 12 months

#

VMs, etc.

#

others, always free.

trim yacht
#

Didn't know they have always free now

tropic furnace
#

Also the discord is a great way to pass on product feedback directly to the teams

#

a lot of us hang out there

steel coral
#

Azure Functions, for example, will get a million executions per month for free.

whole rover
steel coral
#

As an aside, if you are a student, we have "Azure for Students" which enables you to sign up with your institutional email and no credit card.

#

And has $100 credit (if I remember correctly).

primal shadow
#

Drop that discord in the partners chat no?

tropic furnace
#

Joseph, this was such a treat. Thanks for taking the time to stream today.

quaint lagoon
steel coral
#

(There's also nothing stopping you from having both a Student account and a free trial)

#

Thank you @sturdy fulcrum, this was great!

primal shadow
#

What if I'm still learning from the school of hard knocks, can I sign up for a student account?

tropic furnace
primal shadow
#

self taught for life?

steel coral
#

@primal shadow if it has an email account, we might be able to make that happen 😄

#

Or we can give you another kind of pass which will let you try things out.

primal shadow
#

so I need to make a .edu? lol

tropic furnace
#

I believe we're able to grant some free trial accounts just for the labs if you don't want to sign up for one

primal shadow
#

I will definitely try the trial, though what I saw seemed above my level so I doubt I'll really utilize what's there

trim yacht
#

well, that isn't the only lab, right?

whole rover
#

Thanks all! Apologies for the WiFi at the start of things there, glad it held up in the end!

steel coral
#

@primal shadow for student account without credit card, .edu an edu, or the name of an institution (without an email) and we can provide you a validation code. Anyone with a credit card can sign up with an Azure Free account (and not be charged).

whole rover
#

There are more labs for quite a few different Azure things

whole bear
#

I've got a question to anybody out there, just made a codewars riddle, in which you gotta build a function which is given to strings (s1, s2) and you should tell whether is possibile to "build" s2 out of s1..(for example s1 = 'loahlskaning', s2='kingnoah' would be possible...

Because of the possibility of letters occurring twice (like 'n' in the example above) I thought that the set-data type wasn't an option so I did it with dicts..

but the best-practice answer is with sets, and I just don't find anything in the documentation why this is possible:

def scramble(s1,s2):
print(set(s1))
print(set(s2))
for c in set(s2):
if s1.count(c) < s2.count(c):
return False
return True

Can anybody explain?

nova solstice
barren citrus
#

Asking python questions on no-microphone channel flush

whole bear
#

hello

obtuse trail
ocean gyro
obtuse trail
hexed wolf
#

Yo

whole bear
#

@obtuse trail You're over commenting

obtuse trail
#

That was old code, Ive since refactored

obtuse trail
#

not connect two

#

connect to database

obtuse trail
sleek tiger
#
#
slate frost
#

let's encrypt

whole bear
#

@subtle phoenix What's the code you're working with, and what are you trying to do?

#

?

#

@sleek tiger I'm not gone. It's Elliot

#

@subtle phoenix It sure is

#

@subtle phoenix Anyway, let's work on Python stuff

#
for each in a['included']:
    each['attributes']['name']
#

@subtle phoenix Still there?

sly jolt
#

👌

#

sometimes staff come along and just hang out

#

imagine a automated voice help system

#

not just text help

#

yeah exactly

#

I'm more saying of it would be more of a nightmear

#

oh no that's not what I meant

#

I mean channels interacting with you like the text channels

#

It really do be like that sometimes

#

same, you just sit back in your seat wondering where it all went wrong

#

jason

#

google translate it

#

wait

#

maybe they changed it

#

still correct

#

you did it!

obtuse trail
#

db_full_records, db_bb_id_empty, db_ldap_guid_empty, db_ldap_empid_empty

#

(str, DBStudent)

whole bear
obtuse trail
#

def print_student_record_changes(db_student_equivalent: DBStudent, bb_student: BBStudent):

#

pylance

whole bear
#

@sleek tiger What are you doing with your mic?

sleek tiger
#

@whole bear cleaning off my desk

whole bear
#

Ah

obtuse trail
#

db_student_full_equivalent = DBStudent(db_students_full_record.get(bb_student.bb_id))

scarlet plume
#

!tempban 451025550895611915 7d Your toxic and condescending behavior will not be tolerated here. You've made people feel bad/ashamed of their knowledge, just because they were asking for help with some code. Saying things such as "Are you a fucking retard?" and "Do you seriously not understand this?" to others really shows your atrocious attitude and misconduct. That is completely unacceptable. Reread our rules and code of conduct and fix your shitty attitude if you ever decide to join back here again.

And now we've even received another report of you trying to start a strip club in this Discord guild.. Unacceptable.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @sleek tiger until 2020-07-10 05:02 (6 days and 23 hours).

scarlet plume
#

oh man i got such a steal server pc with a xeon e5-1620 for only ~$80. it works very well to this day.

whole bear
#

@frigid shard Can you fix your mic

obtuse trail
#

nice with the 1620, old xeons are the hidden gem of the pc market

teal stream
scarlet plume
#

indeed they are, such a great price to performance ratio

obtuse trail
#

@scarlet plume one thing to watch out for with the E5-2xxx series is the power draw, the older series kick out power like a fricking space heater

random helm
#

@graceful grail Please stop attempting to find additional info on moderative reports.

teal stream
scarlet plume
#

hahah yeah, when it's under high load, it's like a furnace. it's just been serving some small web servers for the past few months though, so cpu usage is pretty low along with the heat output

#

it was just such a steal on ebay though, it even had 16 gigs of ram

graceful grail
#

EDITOR=nano sudoedit

obtuse trail
#

yeah the 1620 etc are only for single socket machines where it doesnt matter as much

#

my esxi playground has two E5-2640 CPUs and the thing noticeably heats up my room

scarlet plume
#

at least you have a nice heater in the winter 😄

#

looking through r/homelab just fills me with so much envy lol

obtuse trail
#

oh trust me i know

#

like people who have server racks with dedicated 240v breakers baffle me

#

just kludge together a good enough setup like the rest of us plebs 🙂

whole bear
#

sorry guys i was watching ali a

#

(:

obtuse trail
#

that smiley face is too big and makes me uncomfortable

#

@teal stream do you think the issue I mentioned is a bug report or feature request?

#

yeah yeah i see it

#

but thats like intentionally big

#

the other one is a big emoji

#

they look like they want to be small

#

so it definitely stopped me from doing something, but i dont think it was ever a feature

random helm
#

there's a migration period between the two architechtures for native code changes, but there's also a virtualisation layer they're adding for the migration

#

mac wasn't likely to get much native game support regardless, even without the arch change, due to being a totally different os stack to deal with

#

moving to ARM also has a huge benefit for just having all devices on the same arch, so software works across all devices, and each device type only has minimal changes to adapt for interactions/views

obtuse trail
graceful grail
obtuse trail
graceful grail
#

^^ That burns my eyes, kill it, kill it with fire!

severe pulsar
#

whats a hamdog?

#

hotdog?

coarse wharf
#

that smiley face is too big and makes me uncomfortable
@obtuse trail facts

severe pulsar
#

hey come back man

#

its just an opinion

#

its fine

graceful grail
#

I was just about to unmute your but you left and now I cant.

severe pulsar
#

rip

#

he's gone

graceful grail
#
"""Way Too Long Words: Codeforces.com"""

num_words = int(input())
words = []

while num_words > 0:
    words.append(input())
    num_words = num_words - 1

while len(words) > 0:
    word = words.pop(0)
    if len(word) <= 10:
        print(word)
    else:
        print(word[0] + str(len(word) - 2) + word[-1])
#

!code

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

```python
print('Hello world!')
```

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
whole bear
#
import art, time, os, platform, subprocess
from art import *

def ping(host):

    # Option for the number of packets as a function of
    param = '-t' if platform.system().lower()=='windows' else ''

    # Building the command. Ex: "ping -c 1 google.com"
    command = ['ping', param, host]

    return subprocess.call(command) == 0

try:
    ping('poop.cc')
except:
    print('Poop')
#

Request timed out.

rustic mauve
#
w = []
for i in range(int(input())):
    w.append(input() + '\n')
    if len(w[i]) > 11:
        w[i] = w[i][0] + str(len(w[i]) - 3) + w[i][len(w[i])-2] + '\n'
print(''.join(w))
#

l33t

graceful grail
#

cool

rustic mauve
#

Run it

#

Yea, it was a fun little challenge, I was aiming for least lines and less executions

#

Its 11 because I add a new line character prior

#

I append it to the list initially to save 2 lines for an else statement, and then I do an if to modify that spot in the list if its larger than 11

whole bear
#
What```
#

Yes

#

Nerd

random helm
#

!warn 392785501850959883 That's a no for that emoji

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @whole bear.

whole bear
#

Lmao

#
#Ping
@client.command()
@commands.guild_only()
async def ping(ctx):
    await ctx.send(f'The bots latency is {round(client.latency * 1000)}ms!')```
#

The most basic command

#

Got 🥛?

#

If we all ping nsa.gov with 65500 bytes, we can delete all their info on us

#

oops

#

i got milk everywhere

#

`

#

M i l k g o d s

#
print('Milk')```
#

ThisBottomRightThisBottomThisBottomLeft
ThisRight🥛ThisLeft
ThisTopRightThisTopThisTopLeft

old kelp
#

Got to go most likely won't see guys again.

severe pulsar
#

rip

#

bye

whole bear
#
C:/Users/medf8/Documents/LousyPinger/pinger.py:22: SyntaxWarning: "is" with a literal. Did you mean "=="?
  HOST_UP = True if os.system(command + host) is 0 else False
#

@severe pulsar

severe pulsar
#

yeah

graceful grail
#
import os, platform

host = "google.com"
HOST_UP = True

if platform.system().lower()=='windows':
    ping = "ping -n 1 " 
else:
    ping = "ping -c 1 "

while HOST_UP == True:
    if os.system(ping + host) == 0:
        HOST_UP = True
    else:
        print("Host Down.")
        HOST_UP = False```
silver rapids
#

it was 2 days ago

#

stfu

whole bear
#

@zinc viper

graceful grail
#
import subprocess, platform

host = "google.com"
HOST_UP = True

if platform.system().lower()=='windows':
    params = "-n 1"
else:
    params = "-c 1"

while HOST_UP == True:
    if subprocess.call(["ping", params, host], stdout=subprocess.DEVNULL) == 0:
        HOST_UP = True
    else:
        print("Host Down.")
        HOST_UP = False
drifting finch
#
import subprocess, platform, sys

host = sys.argv[1]
HOST_UP = True

if platform.system().lower()=='windows':
    params = "-n 1"
else:
    params = "-c 1"

while HOST_UP == True:
    if subprocess.call(["ping", params, host], stdout=subprocess.DEVNULL) == 0:
        HOST_UP = True
    else:
        print("Host Down.")
        HOST_UP = False
graceful grail
#
import subprocess, platform, sys

host = sys.argv[1]
HOST_UP = True

if platform.system().lower()=='windows':
    params = "-n 1"
else:
    params = "-c 1"

while HOST_UP == True:
    if subprocess.call(["ping", params, host], stdout=subprocess.DEVNULL) != 0:
        print("Host Down.")
        HOST_UP = False
drifting finch
#

while HOST_UP == True: ---> while HOST_UP:

graceful grail
#
"""test if a server is up or not (run with ip or domain after command)"""

import sys
import platform
import subprocess

host = sys.argv[1]
HOST_UP = True

if platform.system().lower() == 'windows':
    PARAMS = "-n 1"
else:
    PARAMS = "-c 1"

while HOST_UP:
    if subprocess.call(["ping", PARAMS, host], stdout=subprocess.DEVNULL) != 0:
        print("Host Down.")
        HOST_UP = False

passing all pylint checks.

hexed tartan
#

print(" sup guys")

#

🇫

graceful grail
#

sup

severe pulsar
#

sup

graceful grail
#

nuitka

whole bear
#

f

#

f

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-07-03 13:26 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

graceful grail
#

python -m nuitka --help

edgy cobalt
#

?

ivory shuttle
#

bruh

pastel hamlet
#

m

shrewd drift
#

Hello, new here.

bleak current
#

@shrewd drift Hello

shrewd drift
#

Sup

#

New in python?.

nocturne oyster
#

ihi

whole bear
#

ahahahaha

#

god they thought i needed help ;-;

#

@subtle phoenix ;p

lost mica
#

can someone tell a website for learning python
for freee

whole bear
#

can someone tell a website for learning python
for freee
@lost mica Youtube!

#

its simple

#

youtube

lost mica
#

thx

whole bear
#

;3

#

im 13

whole bear
#

It's ebutuoy

shut thunder
#

are the vc peeps reading this?

#

hey

#

XD

#

nice

#

nicee l33t help me finish my web crawler

severe pulsar
#

eyy

#

lmao

shut thunder
#

sup

severe pulsar
#

what up

#

why aren't you talking?

shut thunder
#

cant understand you crawler

#

why aren't you talking?
I am shy

#

the people in vc are too cool for me

dim kite
#

I am shy
@shut thunder I am shy too

shut thunder
#

I see

dim kite
#

I don't see you

shut thunder
#

I C

whole bear
graceful sigil
#

wooooow

graceful grail
#

what did I miss?

whole bear
#

hi

#

ohh

#

ohh

#

😂

#

🤣

whole bear
#

Hello?

#

Is there Anybody online?

graceful grail
#

yep

whole bear
#

how are you?

#

I'm looking for a flutter dev, I know it's not the right place

plain dagger
severe pulsar
#

I'm looking for a flutter dev, I know it's not the right place
@whole bear there is a separate discord for flutter itself :)

whole bear
#

@severe pulsar Send me the link bro

void hare
#
    def function_wrapper(x):
        print("Before calling " + func.__name__)
        func(x)
        print("After calling " + func.__name__)
    return function_wrapper

def foo(x):
    print("Hi, foo has been called with " + str(x))

print("We call foo before decoration:")
foo("Hi")
    
print("We now decorate foo with f:")
foo = our_decorator(foo)

print("We call foo after decoration:")
foo(42)```
#

def decor(func):
def wrap():
print("============")
func()
print("============")
return wrap

def print_text():
    print("Hello world!")

print_text = decor(print_text)
print_text()```
#
    
    print("============")
    func()
    print("============")
    

def print_text():
    print("Hello world!")

print_text = decor(print_text)
print_text() ```
#

Traceback (most recent call last):
File "./Playground/file0.py", line 13, in <module>
f()
TypeError: 'NoneType' object is not callable

wispy pasture
whole bear
#

we developing biological weapons up in vc?

whole bear
errant helm
#

always a classic

dim wagon
#

ID2020 is a nongovernmental organization which advocates for digital ID for the billion undocumented people worldwide and under-served groups like refugees. Dakota Gruener is the executive director of ID2020. The NGO was relatively unknown before being publicized because of mi...

whole bear
#

@whole bear fun fact - i've met the dude who made that comic

#

he works at toggl, which is an estonian company

#

Oh, awesome^^

whole bear
#

haha

clear sparrow
#
dim wagon
clear sparrow
whole bear
#

i do java idek why im here lmaooooo

clear sparrow
#

i do java idek why im here :lmaooooo:
@whole bear f in the chat

#

ALSO

#

c tier language

#

@little ridge #unix for linux stuff

clear sparrow
whole bear
#

If we factory reset our windows

#

do we have to do partition again

#

Coz,, when I got my new laptop,, I had to do partition

#

@slender bison

#

@graceful grail

#

Do chinese software contain spywares..

slender bison
#

Some might

whole bear
#

I have a free version of bit defender.. Will it serve my purpose

#

by being a good anti virus

slender bison
#

I'm not sure

ivory shuttle
#

asskel

graceful grail
#

haskell

slender bison
#

BF Lexer in Haskell```module Lexer where
-- Author: Jeremy Gluck
data BF_Token = Increment |
Decrement |
Shift_Left |
Shift_Right |
Output |
Input |
Open_Loop |
Close_Loop
deriving Show

-- Assert that source will only contain 1 character tokens or whitespace or any other character as comment
lex_char :: Char -> BF_Token
lex_char '+' = Increment
lex_char '-' = Decrement
lex_char '>' = Shift_Left
lex_char '<' = Shift_Right
lex_char '.' = Output
lex_char ',' = Input
lex_char '[' = Open_Loop
lex_char ']' = Close_Loop
lex_char _ = undefined

isBF :: Char -> Bool
isBF '+' = True
isBF '-' = True
isBF '>' = True
isBF '<' = True
isBF '.' = True
isBF ',' = True
isBF '[' = True
isBF ']' = True
isBF _ = False

lexer :: String -> [BF_Token]
lexer = map lex_char . filter (not . isBF)

#

Quicksort in Haskell

qsort [] = []
qsort (head:tail_list) = [x | x <- tail_list, x < head] ++ [head] ++ [x | x <- tail_list, x >= head]```
#

natural_numbers = [0..]

#

in haskell^

graceful grail
#
a = 0
while True:
  print(a, end=' ')
  a += 1
#
a = 0
b = []
while True:
  b.append(a)
  a += 1
clear sparrow
#

input()

#

a = input()

valid egret
graceful grail
#
a = 1
b = 0
while True:
    b = str(b) + " " + str(a)
    a += 1

slender bison
#

Integer vs int

clear sparrow
#

4958645639584845847653974594854

#

erhguhfjsfkdhgjfhgjfdghjfhgdjghkdjfhgfdjgdhjkfghjfgdgfdjgf

#

which one requires more memory?

slender bison
#

are those python literals or what

graceful grail
#
"""Ram Eater (doesn't eat ram  although the b keeps getting bigger)"""

a = 1
b = "0"
while True:
    b = b + " " + str(a)
    a += 1
graceful grail
#

-> str

#

#this is going to take a string

slender bison
#
def fun(a: str, b: int, c: Callable, d: bool) -> None:```
#
from typing Callable, List, TypeVar
t = TypeVar('t')
def map(f: Callable[[t],t], list: List[t]) -> List[t]:
    return [f(x) for x in list]```
graceful grail
#
from typing Callable, List, TypeVar
t = []
def map(f, t) -> List[t]:
    return [f(x) for x in list]
cold karma
#

.

whole bear
#

Did someone just break the bot lol?

graceful grail
#

!code

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

```python
print('Hello world!')
```

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
glass shuttle
#

!code

graceful grail
#

!code @ruby wind

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

```python
print('Hello world!')
```

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
devout pendant
#

l

glass vector
#

Hi

austere chasm
#
"""Ram Eater (doesn't eat ram  although the b keeps getting bigger)"""

a = 1
b = "0"
while True:
    b = b + " " + str(a)
    a += 1

@graceful grail I’ve made a better one using pythons byte array syntax smh

upbeat wagon
wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

graceful grail
#

@graceful grail I’ve made a better one using pythons byte array syntax smh
@austere chasm I made one using lists that works. The one that you quoted doesn't eat ram for some reason or if it does, it does so really slowly.

wispy idol
upbeat wagon
#

thank you

austere chasm
#

@austere chasm I made one using lists that works. The one that you quoted doesn't eat ram for some reason or if it does, it does so really slowly.
@graceful grail the one i quoted is yours lmao

#

this will eat your ram ```py

var = 1000000000

while True:
try:
var = var * 2
bytearray(var)
print(var)
except MemoryError:
var = var / 2
var = int(var)
print(var)
bytearray(var)

whole bear
#

this will eat your ram ```py

var = 1000000000

while True:
try:
var = var * 2
bytearray(var)
print(var)
except MemoryError:
var = var / 2
var = int(var)
print(var)
bytearray(var)

@austere chasm so why we should do this?

austere chasm
#

@austere chasm so why we should do this?
@whole bear if you look at the messages before you will see its uses ram faster

whole bear
#

Ohh I see

#

@graceful grail I’ve made a better one using pythons byte array syntax smh
@austere chasm this one

austere chasm
#

@austere chasm this one
@whole bear yuh

whole bear
#

Hmm nice bro

graceful grail
#

@austere chasm as posted above the message that you quoted ```python
a = 0
b = []
while True:
b.append(a)
a += 1

#

^^ that one eats ram... pretty much the same as the one that you quoted.. however it uses lists instead of strings and actually eats ram.

whole bear
#

shall i join

#
print('hello world')
#

🙂

#

your voice is so cool @wispy idol

wispy idol
#

@whole bear Thanks, I guess

whole bear
#

@wispy idol are you guys talking about elif ?

#

do we have any kind of alpha and omega in python

vestal zinc
#

whats the topic?

still silo
#

so a table: user has 2 columns "username" and "age"

#

username | age
mike | 20
mary | 22

#

select username from user where age = "22"

severe elm
#

(col 1, row 2) xD

#

tf

still silo
#

🙂

severe elm
#

Herokuuuuuuu

#

it sound so much like Son goku

#

@still silo what ya developing?

#

website?

#

@still silo yes

#

thats why you rent a server man

still silo
#

bioinformatics pipelines lately (genetics)

#

we have our own high-performance-cluster (university of south florida)

severe elm
#

i have to google that man

#

wtf

still silo
#

i used to be devops guy

severe elm
#

oh

#

i know about that man

#

what was the famous hackers name again, something with Hotz

#

he made that during corona shutdown

still silo
#

ATTTGAA

severe elm
void pond
severe elm
#

what is this youtube video about?

still silo
shadow flare
#

Sorry that I'm mute, I can't talk at the moment I hope it's ok if I listen.

still silo
#

np

cobalt mantle
whole bear
#
with open("some_file.txt") as f:
  for line in f:
    print(line)
whole bear
#

K

whole bear
#

Dynamic programming is both a mathematical optimization method and a computer programming method. The method was developed by Richard Bellman in the 1950s and has found applications in numerous fields, from aerospace engineering to economics.
In both contexts it refers to simp...

#

@fair anvil

#

yy

pure bluff
#

hi

hallow warren
#

@whole bear dynamic programming is optimization by linear programming on triangular (half square) matrices

#

Why do they even call it dynamic?

#

It's not particularly dynamic

fair anvil
#

beggining_attacker_HP = 100
beggining_attacker_strenth = 100
beggining_attacker_mana = 100
beggining_player_HP = 100
beggining_player_strength = 100
beggining_player_mana = 100

attacker_HP = beggining_attacker_HP
attacker_mana = beggining_attacker_mana
attacker_strenth = beggining_attacker_strenth
player_HP = beggining_player_HP
player_mana = beggining_player_mana
player_strength = beggining_player_strength

while attacker_HP > 0:
print (">> how much damage do you wish to do to the attacker? ")
damage_to_attacker = input()
int_damage_to_attacker = int(damage_to_attacker)
attacker_HP = attacker_HP - int_damage_to_attacker
str_attacker_HP = attacker_HP
print ("attacker HP is " , str(str_attacker_HP)

print ("attacker is dead")

hallow warren
#

@fair anvil stupid

whole bear
#
I spent the Fall quarter (of 1950) at RAND. My first task was to find a name for multistage decision processes. An interesting question is, Where did the name, dynamic programming, come from? The 1950s were not good years for mathematical research. We had a very interesting gentleman in Washington named Wilson. He was Secretary of Defense, and he actually had a pathological fear and hatred of the word research. I’m not using the term lightly; I’m using it precisely. His face would suffuse, he would turn red, and he would get violent if people used the term research in his presence. You can imagine how he felt, then, about the term mathematical. The RAND Corporation was employed by the Air Force, and the Air Force had Wilson as its boss, essentially. Hence, I felt I had to do something to shield Wilson and the Air Force from the fact that I was really doing mathematics inside the RAND Corporation. What title, what name, could I choose? In the first place I was interested in planning, in decision making, in thinking. But planning, is not a good word for various reasons. I decided therefore to use the word "programming". I wanted to get across the idea that this was dynamic, this was multistage, this was time-varying. I thought, let's kill two birds with one stone. Let's take a word that has an absolutely precise meaning, namely dynamic, in the classical physical sense. It also has a very interesting property as an adjective, and that is it's impossible to use the word dynamic in a pejorative sense. Try thinking of some combination that will possibly give it a pejorative meaning. It's impossible. Thus, I thought dynamic programming was a good name. It was something not even a Congressman could object to. So I used it as an umbrella for my activities.
hallow warren
#

Do you people know what games are? It's not hit point accounting, it's branching scenario roleplay content: https://twinery.org

whole bear
#

History behind the name of dynamic programming^^^

hallow warren
#

Java sucks

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @hallow warren until 2020-07-09 01:35 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

twin wigeon
hallow warren
#

I got muted because I put four "}"s on lines by themselves, but any java programmer is likely to often have 5 or 7 of them without anything else, just wasting space because they don't use the information from indentation.

wise cargoBOT
#

Hey @hollow flax!

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

hallow warren
#

Tay was an artificial intelligence chatter bot that was originally released by Microsoft Corporation via Twitter on March 23, 2016; it caused subsequent controversy when the bot began to post inflammatory and offensive tweets through its Twitter account, causing Microsoft to s...

whole bear
#

@hallow warren Did you mean to use a codeblock?

#

!codeblock

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

```python
print('Hello world!')
```

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
whole bear
#
print('?')
while True:
    print('somebody once told me')
    break
#
BEGINNING = 100
attacker_hp = BEGINNING
attacker_strength = BEGINNING
attacker_mana = BEGINNING

player_hp = BEGINNING
player_strength = BEGINNING
player_mana = BEGINNING
#
while attacker_HP > 0:
    print (">> how much damage do you wish to do to the attacker? ")
    damage_to_attacker = input()
    int_damage_to_attacker = int(damage_to_attacker)
    attacker_HP = attacker_HP - int_damage_to_attacker
    str_attacker_HP = attacker_HP
    print ("attacker HP is " , str(str_attacker_HP)
print ("attacker is dead")
#
    damage_to_attacker = input(">> how much damage do you wish to do to the attacker?: ")
#

!e

a = 'HELLO WORLD'
b = int(a)
print(b)
wise cargoBOT
#

@whole bear :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | ValueError: invalid literal for int() with base 10: 'HELLO WORLD'
whole bear
#

!e

a = 'HELLO WORLD'
while True:
    try:
        b = int(a)
    except ValueError:
        print("That's wrong, let's try again.")
        break
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

That's wrong, let's try again.
whole bear
#
a = int(input('How much damage do you wish to do?: '))
#

<@&267629731250176001>

whole rover
#

!tempmute @pure bluff 1d Joining voice chat to blast music is... not appropriate

#

lol

scarlet plume
#

mmm

whole rover
#

!tempmute @pure bluff 1d Joining voice chat to blast music is... not appropriate

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @pure bluff until 2020-07-10 02:13 (23 hours and 59 minutes).

whole rover
#

I removed my roles

#

silly me!

whole bear
#
while True:
    try:
        a = int(input('How much damage do you wish to do?: '))
        break
    except ValueError:
        print("That's wrong, let's try again.")
#
try:
    print('something here')
except Exception:
    print('Catch all')
cobalt mantle
whole bear
#
try:
    print('something here')
except(ValueError, KeyError) as e:
    print(str(e))
#
while True:
#

!e

a = False
while not a:
    print('somebody once told me')
    a = True
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

somebody once told me
whole bear
#

"1"

#

False values:

0, False, [], {}
#

True values:

{0: []}, True, "0", "1", "2", [0]
#
int(), bool(), isinstance(), dict(), type()
#
list()
#

!e

a = '5'
b = 0
c = []
d = "SOMEBODY ONCE TOLD ME"
print(bool(a))
print(bool(b))
print(bool(c))
print(bool(d))
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

001 | True
002 | False
003 | False
004 | True
whole bear
#
input()
#
int(input('Your input here: '))
fair anvil
#

beggining_attacker_HP = 100
beggining_attacker_strenth = 100
beggining_attacker_mana = 100
beggining_player_HP = 100
beggining_player_strength = 100
beggining_player_mana = 100

attacker_HP = beggining_attacker_HP
attacker_mana = beggining_attacker_mana
attacker_strenth = beggining_attacker_strenth
player_HP = beggining_player_HP
player_mana = beggining_player_mana
player_strength = beggining_player_strength

while attacker_HP > 0:
print (">> how much damage do you wish to do to the attacker? ")
damage_to_attacker = int(input())
int_damage_to_attacker = int(damage_to_attacker)
attacker_HP = attacker_HP - int_damage_to_attacker
str_attacker_HP = attacker_HP
print ("attacker HP is " , str(str_attacker_HP)

print ("attacker is dead")

whole bear
#
    int_damage_to_attacker = int(input())
#
print ("attacker HP is " , str(str_attacker_HP)
#

!e

print('>> How much damage do you wish to do to the attacker?\n:')
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

001 | >> How much damage do you wish to do to the attacker?
002 | :
whole bear
#

!e

print('that's wrong')
wise cargoBOT
#

@whole bear :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     print('that's wrong')
003 |                 ^
004 | SyntaxError: invalid syntax
whole bear
#

!e

print('that\'s wrong')
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

that's wrong
whole bear
#
''.join(sequenceofstrings)
```@hollow flax
fair anvil
#

beggining_attacker_HP = 100
beggining_attacker_strenth = 100
beggining_attacker_mana = 100
beggining_player_HP = 100
beggining_player_strength = 100
beggining_player_mana = 100

attacker_HP = beggining_attacker_HP
attacker_mana = beggining_attacker_mana
attacker_strenth = beggining_attacker_strenth
player_HP = beggining_player_HP
player_mana = beggining_player_mana
player_strength = beggining_player_strength

while attacker_HP > 0:

int_damage_to_attacker = int(input(">> how much damage do you wish to do to the attacker? "))
attacker_HP = attacker_HP - int_damage_to_attacker
str_attacker_HP = attacker_HP
print ("attacker HP is " , str(str_attacker_HP)

print ("attacker is dead")

whole bear
#
print ("attacker HP is " , str(str_attacker_HP)
print ("attacker HP is " , str(str_attacker_HP))
#

!e

a = ['somebody', 'once', 'told', 'me', 'the', 'world', 'was', 'gonna', 'roll', 'me']
print([x for x in a])
wise cargoBOT
#

@whole bear :white_check_mark: Your eval job has completed with return code 0.

['somebody', 'once', 'told', 'me', 'the', 'world', 'was', 'gonna', 'roll', 'me']
limber lichen
#

!codeblock

wise cargoBOT
#

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:

```python
print('Hello world!')
```

Note:
These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them

This will result in the following:

print('Hello world!')
whole bear
#

that's cool

wispy idol
#
whole bear
#

import re

test = "3 < 7 > 11"
strings = re.split(r'[<>]{1}', test)
print(strings)

#

test.split("<", ">")

#

test.split("<"|">")

wispy idol
#

test.split(["<", ">"])

gilded moat
#

I do not understand anything

crimson light
#

hi peoples can i join the general

lost folio
#

hhhhhhhhhhhhhhhhhhhhhhhh

#

@calm fern

calm fern
#

@lost folio

lost folio
#

meeeeeeeeee

#

eeeeeeeeeeeeeeeeeeeee

calm fern
#

@lost folio can you hear me?

lost folio
#

yesss meeeeeeeeeeeeeeeeeeee hearrrrrrrrrrrrrrrr

#

meeeeeeeeeeeeeeeeeeeeeeeeee

#

meeeeeeeeeeeeeeeeeeeeeeeeeeee

calm fern
#

do you have a mic??

lost folio
#

mikeee my name no

#

uuuuuuuuuuuuu

calm fern
#

Do YOU have a Microphone??

lost folio
#

nooooooooooooooo youuuuuuuuuuuuuuuuuuuuuuuuuuuuu

#

yessssssssssssssssssssssssss

#

me make

#

me make

#

mamamamamamamama'

#

mamammaammamamama

#

mama miaaaa

#

mario

#

me make marioooooooooooo mamamamama

#

yes

#

E

#

u play fort?

#

noooooooooooooooooooooo me meannnnn forttt

#

do uuuuuuu

#

5 year

#

tomoroow gona be 16 year

#

byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

#

😩

#

😘

#

shut

stark steppe
#

futuredevYesterday at 10:30 PM
that's cool
TrayKnotsToday at 4:17 AM
@whole bear https://note.nkmk.me/en/python-split-rsplit-splitlines-re/#:~:text=Split by regular expression%3A re.,-split()&text=split() %2C specify the regular,consecutive numbers is as follows.&text=The maximum number of splits,in the third parameter maxsplit .
Split strings in Python (delimiter, line break, regex, etc.) | note...
Here's how to split strings by delimiters, line breaks, regular expressions, and the number of characters in Python.Split by delimiter: split()Specify the delimiter: sepSpecify the maximum number of split: maxsplit Specify the delimiter: sep Specify the maximum number of split...

SimaToday at 4:21 AM
import re

test = "3 < 7 > 11"
strings = re.split(r'[<>]{1}', test)
print(strings)
test.split("<", ">")
test.split("<"|">")
TrayKnotsToday at 4:25 AM
test.split(["<", ">"])
luiz⚒☭Today at 11:41 AM
I do not understand anything
sschr15 (@able)Today at 11:47 AM
hi peoples can i join the general
kardoToday at 12:51 PM
hhhhhhhhhhhhhhhhhhhhhhhh
@calm fern
HermyToday at 12:52 PM
@lost folio
kardoToday at 12:52 PM
meeeeeeeeee
eeeeeeeeeeeeeeeeeeeee
HermyToday at 12:52 PM
@lost folio can you hear me?
kardoToday at 12:52 PM
yesss meeeeeeeeeeeeeeeeeeee hearrrrrrrrrrrrrrrr
meeeeeeeeeeeeeeeeeeeeeeeeee
meeeeeeeeeeeeeeeeeeeeeeeeeeee
HermyToday at 12:53 PM
do you have a mic??
kardoToday at 12:53 PM
mikeee my name no
uuuuuuuuuuuuu
HermyToday at 12:53 PM
Do YOU have a Microphone??
kardoToday at 12:53 PM
nooooooooooooooo youuuuuuuuuuuuuuuuuuuuuuuuuuuuu
yessssssssssssssssssssssssss
me make
me make
mamamamamamamama'
mamammaammamamama
mama miaaaa
mario
me make marioooooooooooo mamamamama
yes
E
u play fort?
noooooooooooooooooooooo me meannnnn forttt
do uuuuuuu
5 year
tomoroow gona be 16 year
byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
😩
😘

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @stark steppe until 2020-07-09 20:21 (9 minutes and 58 seconds) (reason: chars rule: sent 3840 characters in 5s).

dim wagon
#

Couscous (Berber : ⵙⴽⵙⵓ seksu, Arabic: كُسْكُس‎ kuskus) is a Maghrebi dish of small (about 3 millimetres (0.12 in) diameter) steamed balls of crushed durum wheat semolina that is traditionally served with a stew spooned on top. Pearl millet and sorghum, especially in the Sahel...

dim wagon
#

Group theory (Théorie des groupes)

#

In mathematics and abstract algebra, group theory studies the algebraic structures known as groups.
The concept of a group is central to abstract algebra: other well-known algebraic structures, such as rings, fields, and vector spaces, can all be seen as groups endowed with ...

#

In mathematics, Galois theory provides a connection between field theory and group theory. Using Galois theory, certain problems in field theory can be reduced to group theory, which is in some sense simpler and better understood. It has been used to solve classic problems inc...

#

386

somber heath
#

Pineapple

#

A Halal Snack Pack is a fast food dish, popular in Australia, which consists of halal-certified doner kebab meat (lamb, chicken, or beef) and chips.[1] It also includes different kinds of sauces, usually chilli, garlic, and barbecue.[2] Yoghurt, cheese, jalapeño peppers, tabbouleh, and hummus are common additions. The snack pack is traditionally served in a styrofoam container, and has been described as a staple takeaway dish of kebab shops in Australia.[2][3]

still silo
#

Bulgur (from Turkish: bulgur, lit. 'groats'; also burghul, from Arabic: برغل‎, romanized: burġul, lit. 'groats') is a cereal food made from the cracked parboiled groats of several different wheat species, most often from durum wheat. It originates in Middle Eastern cuisine.

dim wagon
#

Pea

#

dry Pea

sleek tiger
dim wagon
#

exploit in

still silo
#
still silo
sudden vine
dim orbit
#

why are yall discussing Tulsi?

languid comet
graceful grail
#
import socket
import pickle
from _thread import *
from player import Player

server = "0.0.0.0"
port = 1337

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

try:
    s.bind((server, port))
except socket.error as e:
    print(e)
    print("Quitting.")
    quit()
    
s.listen()

print("Server Started...")```
still silo
little ridge
#

@somber heath men sry but u have ekko

clear sparrow
#

`success = !!what()&&that()
return !!value

var x = "somevalue"var isNotEmpty = !!x.length;
Let's break it to pieces:
x.length // 9
!x.length // false
!!x.length // true`

clear sparrow
whole bear
little ridge
#

irust

#

Var str1 = "hello";
var str2 = "world";
Var res = str1.concat(str2);

#

-p sing

dawn flower
#

xlrd

junior kayak
dawn flower
#

@junior kayak ???

little ridge
#

error: linker link.exe not found
|
= note: The system cannot find the file specified. (os error 2)

note: the msvc targets depend on the msvc linker but link.exe was not found

note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option

error: aborting due to previous error

#

how i can fix it?

#

its an rust lang

dim wagon
dim wagon
whole bear
candid delta
#

are there any Mods around please? Staff?

#

@alpine crater Can I get some assistance?

turbid oriole
#

@candid delta you can contact us by DMing @rapid crown

candid delta
#

Was just a quick question about screening-sharing.

turbid oriole
#

Ah ok, what was your question?

drifting finch
#

@whole bear Did you make Mina?

whole bear
#

Yeah

#

But I’m still working on it

drifting finch
#

it looks cool, do you need any contributors?

#

I'd be down to help out with it

whole bear
#

I’m fine but thx

compact belfry
#

def check(n):

for i in range(11, 21):
    if n % i == 0:
        continue
    else:
        return False
    return True

x = 2520

while not check(x):
x += 2520

valid egret
#

please use this next time ```python

compact belfry
#

ok thx

valid egret
#
def check(n):


    for i in range(11, 21):
        if n % i == 0:
            continue
        else:
            return False
        return True


x = 2520

while not check(x):
    x += 2520
dim wagon
#

k*2520

valid egret
#

{}

#

[]

zealous wave
#
@client.command()
async def rant(ctx):
    RANT = json.load('test.json')
    await ctx.send(RANT)
------------------------------
"test"
rustic mauve
#

@valid egret Out of curiosity, what is the point of the code that you posted before 猫 ▒█►K̲ ム ω ム II◄█▒:

valid egret
#

that is just a formatted version of the previous person's code, because i'm blind without syntax hilighting

gritty mango
#

it's prettier with syntax highlighting

severe elm
#

car ralley

valid egret
#

you're prettier with syntax highlighting. @gritty mango

#

cloud-init

wispy idol
#

JSON-RPC is a remote procedure call protocol encoded in JSON. It is a very simple protocol (and very similar to XML-RPC), defining only a few data types and commands. JSON-RPC allows for notifications (data sent to the server that does not require a response) and for multiple ...

severe elm
#

is that true? i should start drinking more then

cobalt mantle
#

I have a theory on enhancing coding

#

Cannabis for Creation, small amount of alcohol for focus.. but Cannabis destroys focus

obtuse trail
little ridge
#

oh sry

#

it cuz im downloading

little ridge
#

Fill in the blanks to create a method that takes optional parameters and outputs the squares of its parameters:

def sq( ?p)
?.each {| ? | puts x*x}
end

wispy idol
#
 def sq(p: Int*) = {
  
    p.map(num => num * num)
  }
#

@little ridge

def sq(*num):
    return list(map(lambda num: num**2, num))
    
print(sq(5,7))

Python answer

little ridge
#

use std::io;

fn main() {
println!("Guess the number!");

println!("Please input your guess.");

let mut guess = String::new();

io::stdin()
    .read_line(&mut guess)
    .expect("Failed to read line");

println!("You guessed: {}", guess);

}

#
use std::io;

fn main() {
    println!("Guess the number!");

    println!("Please input your guess.");

    let mut guess = String::new();

    io::stdin()
        .read_line(&mut guess)
        .expect("Failed to read line");

    println!("You guessed: {}", guess);
}
dawn flower
#
import datetime

f = datetime(%d%m%y)
d = 15:7:2020
while True:
  f = datetime(%d%m%y)
  if d == f:
    print("kaboom")
plain dagger
#
if token != "csrftoken":
  continue
else:
  Preferences.objects.get(token=token)
#

best legacy code ever

little ridge
#

hi guys can u fix this plz

#
class my_mat:
    def mat_1(self):
        try:
            I = int(input("enter number of rows: "))
            J = int(input("enter number of coloum: "))
            mat1=[]
            print("Enter the entries rowwise: ")
            for i in range(I):
                 b =[]
                 for  j in range(J):
                     b.append(int(input()))
                     mat1.append(b)
            for i in range(I):
                for j in range(J):
                    print(mat1[i][j],end=" ")
                print()
        except(ValueError):
            print("all input is not integer")
        try:
            K = int(input("enter number of rows: "))
            G = int(input("enter number of coloum: "))
            mat2=[]
            print("Enter the entries rowwise: ")
            for i in range(K):
                 b =[]
                 for  j in range(G):
                    b.append(int(input()))
                    mat2.append(b)
            for i in range(K):
                for j in range(G):
                    print(mat2[i][j],end=" ")
                print()
        except(ValueError):
            print("all inputs isnot integer")
            if I == G:
                result = []
                for i in range(len(I)):
                      for j in range(len(G[0])): 
                           for k in range(len(G)): 
                                 result[i][j] += mat1[i][k] * mat2[k][j] 
                for r in result:
                       print(r)
            else:
                raise MatrixMultiplicationError("Two matrices cannot be multiplied")
def main():
    my_mat.mat_1()
if name=="main":
    main()
#

this is Multiply of 2 matrix

little ridge
wispy idol
#

@somber heath

# python
x = [1 , 2, 3, 4]
x = list(map(lambda num: num * num, x))

// javascript
let x = [1, 2, 3, 4]
x = x.map(num => num * num)
dim wagon
#

r'zix'

#

'zix'

whole bear
#

have 2 go

plush ginkgo
whole bear
#

i want to talk but i dont wanna break the conversation OwO

#

when i feel like it 🤔

dim wagon
#

Parchisi STAR Online

whole bear
#

lemme search it up

#

oh

#

listening to these adults talk

#

lol

gritty plinth
#

@red anvil Hello my bruda!

red anvil
#

What

#

Why

#

You arent supposed to be here

#

None of you are 😭

dark fox
#

fyne

dawn flower
glossy timber
#

self.zebra

#

animals.zebra

dawn flower
#

f= str("help {0}".format(x)

dark fox
dawn flower
#
def hello(x):
    print("hello {0}".format(x))

while True:
    x=input("Your name:")
    hello(x)
glossy timber
#
print("Hello, Osama Bin Laden")
lime plaza
#

Gotta go cya

edgy zinc
#

what is this for>

little ridge
#
fn main(){
println!("hello world")
}
still silo
still silo
#
if __name__ == "__main__":
  do_something()
#

./foo.py

#

import foo

#
kcounts@hii2:~ 
$ cat foo.py 
#!/usr/bin/env python3

import bar


kcounts@hii2:~ 
$ cat bar.py 
#!/usr/bin/env python

print("hi mom")
#

$ ./foo.py
hi mom

#

$ cat bar.py
#!/usr/bin/env python

if name == "main":
print("hi mom")
$ cat bar.py
#!/usr/bin/env python

if name == "main":
print("hi mom")

#

$ ./foo.py

#
$ cat bar.py 
#!/usr/bin/env python

print(__name__)
#

$ ./foo.py
bar

junior kayak
#

What is returned as a result of calling makeFancy("JAVA")?

  public static String makeFancy(String s) {
if (s.length() == 0) {
    return "*";
}
return "*" + s.substring(0,1) + makeFancy(s.substring(0, s.length()-1));

}

JAVA

  • JAVA* *
    JJJJ*
    AAAA*
    JJJJ
    unanswered
#

public static String makeFancy(String s) {
if (s.length() == 0) {
return "";
}
return "
" + s.substring(0,1) + makeFancy(s.substring(0, s.length()-1));
}

mossy glade
#

What is the error?

junior kayak
#

What is returned as a result of calling puzzle(22, 11)?

  public static int puzzle(int i, int j) {
if (i == j) {
    return 0;
} else {
    return 1 + puzzle(i – 2, j – 1);
}

}

StackOverFlowError
22
33
11

balmy whale
whole bear
#

Library is more like an extension

#

You call a library while a framwork calls your code

#

@jade storm