#voice-chat-text-0
1 messages Β· Page 630 of 1
A lot of Google's executives are from India
sundar pichai or whoever it is
@gloomy nova Peoples perspective about indian's that they r good with maths
python,javascript,java
right
Me
Do you know Gujarati?
Oh right, a lot of my friends at school could speak it.
Lol
Because of the part of London I'm from, has the largest Gujarati-speaking population outside India.
Parseltongue?
I'm 22% sure i spelled it correctly
You did
Yes u did
But I was making a joke about Python being interpreted
sounds coool
I can give you the code to generate it.
my new name:"dragon fractal"
from turtle import Turtle
from colorsys import hls_to_rgb
from itertools import cycle
shelly = Turtle()
shelly.screen.colormode(1.0)
shelly.screen.bgcolor('black')
shelly.screen.tracer(0, 0)
rainbow = [
hls_to_rgb(hue/1000, 0.5, 1.0)
for hue in range(1000)
]
F, R, L = 'forward(5)', 'right(90)', 'left(90)'
path = [F]
for i in range(13):
path = path + [R] + [
{F: F, R: L, L: R}[command]
for command in reversed(path)
]
shelly.speed(0)
for command, color in zip(path, cycle(rainbow)):
shelly.color(color)
eval(f"shelly.{command}")
shelly.screen.update()
input()
Do you know the proof that there are no uninteresting numbers?
Dam u working wtih turtle module ,snapy
Otherwise there would be a first uninteresting number, which is in itself an interesting fact.
Cya
See ya guys
from functools import partialmethod
class Demo:
def __init__(self):
self.color = 'black'
def _color(self, type):
self.color = type
set_red = partialmethod(_color, type ='red')
set_blue = partialmethod(_color, type ='blue')
set_green = partialmethod(_color, type ='green')
obj = Demo()
print(obj.color)
obj.set_blue()
print(obj.color)
@fossil pond hows it going
@worldly mulch https://python.swaroopch.com/ This would be a good resource to get you comfortable with the fundamentals
py -m pip install [package_name_here]
python -m
π’
user_input = [line.strip() for line in input_data]
sum(int(line)//3-2 for line in tx.readlines() if line != "\n")```
@rigid nest https://pythondiscord.com/pages/events/
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
Have you guys seen codingame.com?
codingame is ok
the coding problems they have are fine
the clash of code is really hit or miss tbh
yep
we're engaging in conversation through mind-reading
just use pep 622 ?
rejectx
regexual health
you summoned him
Ohh, so a bit like Haskell?
Does Guido know about this server? π
He does
he better
We have at least one Australian
I remember someone asked yesterday "are there even roads in Wales?"


uberplzd
smalllll



oniii chan
I think I've got Morgan Stanley merch
from when they came to my uni
Could we get a #Code/Help text chat to accompany Code/Help?
Nice π

:100000:
:10000:

Affinity Designer
(My usual is Illustrator though)
What is the stream about
adobe and chill
I hope that's not a dirty reference
well.
idk what you do with adobe
but you do you bruh
No, the reference I mean "Netflix and Chill", it's a pretty gross reference
theyre amazing with jam
Gotta focus on the code review
buttered crumpets are food for the gods
:(
Those still just look like english muffins to me
Huh, okay
I have been educated in the way of baked goods
that looks like a bad scallop
so....latkes?
polski sklep
eggy bread
looks so good
no. savory
Because im a weirdo i normally have it with Chesse, Tuna and sweetcorn, pancake melts the cheese into a nice toasty
altho can never go wrong with beans and cheese
Highlights from the Grand Final between Silver Snipers and Grey Gunners in the Senior CS:GO World Cup at Dreamhack Summer in JΓΆnkΓΆping.
It's pretty amazing watching these two teams compete concidering the average age of Silver Snipers is 69.6 and Grey Gunners average age is 7...
nice nickname
senpai noticed you
π joe
joe, we're starting a gofundme for lukas
you can save us the financial burden by just promoting him
or i could just promote staff with our regular flow π
How do you hear? π
i don't, i'm reading voice chat
invisible python bot
lol, I don't think it's something you agree with
well you can tell me now if you'd not like to be nominated and i'll block your ID from the bot
nominated by existing helper + unanimous approval by moderator team is the current flow
lol
how's mine
LOL
missed the "@"
i am irreplaceable
not irreplicable
that your actions have consequences? You frickin' fricks...
Original here by SammyClassicSonicFan: https://www.youtube.com/watch?v=Ef3rm9PXdCI#t=169
Thanks for 500k guys. And 750k. And 10k likes. And 1M on 4/19/15.
From Sammy's channel description:
"I was born in 1998, diag...
lmao
we have never had a moderator who was not a helper
that squeak at the end
because turns out people who want to go straight to mod aren't typically great mod candidates lul
we get a ton of modmail with "mod me pls" or "admin me pls"
that being said we do get helper as well
to my knowledge we have never promoted someone who has actually asked for the role, lol
lol
yeah
Oh yeah same @twilit lagoon

{[(
county_total_energy.append(data.loc[data['County'] == county_names[x], 'Energy (kWh)'].sum()/county_session_count[x])
data.loc[data['County'] == county_names[x], 'Energy (kWh)'].sum()
o/
hello bast
hello
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
has a discord bot intro in there
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
that one is also okay
Need help whene u try to put yourself into afk it automaticly days u just commed from afk
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
lmao
@idle crater this line is wrong
if users[str(user.id)]["afk"] == "0":
if str(user.id) in users:
why?
yes
well, first line's going to fail if it's not present, therefore, second line's else will never run
It seems your bot is running on_message after your afk command
maybe in the on_message you can check if the message is an afk-triggering command
mmm...
rust is awesome
Hello
got it
o/
Ves, whatcha working on?
New package we're going to release soon
oh?
It's an easy to use asynchronous rediscache tool
Basically, don't worry about anything and just use it almost as an async mapping or async queue, but backed by redis
Oh, that's nice
I'll be back later
I honestly should get off soon, but it's the weekend and I'm not feeling sleep yet
I'm trying to hook up actix websockets and Ring for crypto
or, was
The idea is to have a python-rust bridgeable websocket based event system
New package \o/
So I can fire and subscribe to events across a network, with public/private key security/authetication guarantees
That sounds cool ngl
I hope I'll have time to do some pydis related work this afternoon
I just keep running into lots of libraries not actually doing ECDH encryption, just signing
which I find strange
Isn't ECDH about sharing secrets?
ECC*
They're always dropped under ECDSA, but that's signature stuff, not encryption
IS there something about them not making good crypto encryption primitives that I'm just unaware of?
I think they aren't used for file encryption because of speed
Could always use an ECC to share an AES secret
I'm really just trying to do what GPG does
but yeah, that's probably what'll happen
Fairly, but I consider that mostly a benefit
the performance reqs are very low, so something slower but more guaranteed is better for me, I think
Fair
It may be worth my time to wrap gpg honestly
GPG might be too complex to wrap it to be honest
There's a wrapper mostly made already, but honestly for the functionality I want I'll have to extend it anyway
I kinda like how it's in one file like Bottle is
it's basically a subprocess wrapper
There was a popular library, don't remember which one tbh, but it was one 15k lines file only lol
oh?
I'm scrolling through teh gpg man page
It keeps going and I haven't found the section I want
O.O
Now that I think about it, why not using the C bindings?
because I can probably get away with just using the unattended and subprocess functionality
and there's no up to date package for the c bindings iirc
looks like I can basically generate a keyspec file, and feed it in and it will just work
o/
hello @pine iron
Hi
I want to should I continue learning python or should I learn Java
Many people are advising me many things, today somebody told me that learn Java if you want to secure the future because big corporations use it
I don't know what I should do
I don't know why it is so difficult to have a consensus
as per me most big companies use python
Well, there's lots of people so they're all going to have an opinion
I would suggest stickign with python, but also learnign java when you have the time
the new perspective is helpful, and having both bases covered is nice, but don't stop what you started because something looks a little better
and there is nothing wrong in learning multiple languages
Ok but today someone told me that there is no future with python, he works with Java and Scala at a big organization and it will keep him like settled in the industry
Like the company did not fire him because he works in Java platform. While others were fired who worked with other things during covid
Since I am not from this IT industry I am getting scared by these events
Java programmers are no less replaceable than python ones, he just got lucky
There may be slightly more opportunity to get entrenched in legacy work fro java, but there is more opportunity to become entrenched in new work in python, so it balances out imo
Ok, so learning python will get me jobs right?
I mean remote jobs?
Since we cannot go out of my village for 2 years at least
May be comforting: https://www.edureka.co/blog/python-career-opportunities-your-guide-to-a-career-in-python-programming
o/
hello zappa
Hey
hey
hello buddies
{
"selection1": [
{
"name": "Daniel J. Travanti",
"char": "Capt. Frank Furillo"
},
{
"selection1":{
"name": "Daniel J. Travanti",
"char": "Capt. Frank Furillo"
}
var =["selection1"]["name"]
print(var)
thanks
well it really is haha
πΈ
nekit i need one suggestion should i add more or its looking okish
looks fine to me
ok π
I don't really like sitting in silence here kek
haha
π
I'm also coding a bit here
101 files changed, 11507 insertions(+), 13388 deletions(-)``` yeah
(all those changes were made during last week)
lol
lolz

@vernal igloo send it here
''' python
while True:
moon = [random.randint(1,255),random.randint(1,255)]
list.append(moon)
'''
gg well played
python
while True:
moon = [random.randint(1,255),random.randint(1,255)]
list.append(moon[0])
list is keyword
lst=[]
list = [[156, 2 ], [144,66], [10,6]]
list('123') == ['1', '2', '3']
list = [[155,2],[155,2],[155,2]]
random123=list([[155,2],[155,2],[155,2]])
class Body:
def __init__(self, mass=1):
self.momentum = [0,0]
self.mass = mass
self.pos = [random.uniform(-100,100) for i in range(2)]
def tick_alpha(self):
for other in universe:
if other is not self:
vector = self.gravitate(other)
self.momentum[0]+=vector[0]
self.momentum[1]+=vector[1]
def tick_beta(self):
self.pos[0]+=self.momentum[0]
self.pos[1]+=self.momentum[1]
def gravitate(self, other):
#square of distance blah blah gravity calculation
return vector```
tis i programming jesus on my alt
gg bro
Something that starts to look like that might be what you're after, @vernal igloo
thanks @somber heath
Peace OUT CHAT
cya boi
scott story time?
@pure path how is it you have an announcement role?
Damn you lucifer
Hey guys π
hello!
I'm looking at what e. posted just above on how to make C extensions for python.
it seems pretty interesting as a way to increase performance.
But I'll probably get distracted soon and look into functional programming.
I see the general point of the C extensions, but I would like a project to use them with that makes sense to really try implementing them. I think I look too big in projects. Maybe I should browse github a lot more than I do. I really liked looking at the ranger project. It's a file browser for the terminal.
Oh right.
I think the idea is, write your program in Python first, then profile it. If there is a part of the program that is particularly critical to the program's overall efficiency, optimise that part with C extensions.
Ah yeah, I use Ranger. It's great.
Question, anyone know Defold engine?
yeah i wasnt typing
A bit quiet yeah
yeah
Still quiet
So I know like nothing about python, but can anybody recommend some free coding resources that can help me learn?
Talking about my mic?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Yeah, was talking to @toxic mortar sorry π
thanks
Like Tolkien π
Or Esperanto
You sound pretty English, but with a slight twang
Head pain π
well, I've got to go for now, but it was great seeing the pixel art. I'll never concentrate if I stay here! Thanks for the atmosphere though, I'll carry it into my work!
Don't be sad, the ebbs and flows of life are what make it all great lol
maybe it is too dramatic, but it's true
Good luck!
var
@whole bear This is an english only server.
Thanks! I appreciate you being understanding about it
I was in the neighborhood, as it were
!code @lethal junco
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!')
python --version
You might also want to get the Build Tools for Visual Studio. You don't need Visual Studio specifically, just these tools
You'll want the C/C++ compiler
so is there anything else like kivy? because im trying to build a app with python
a facebook-like and youtube-like app
!resources @meager flower
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
its always the best sollution
The stream always attracts a lot of people to the voice chat 
@rugged root Morning
Yo
I joined just now
hmmmm I wonder if it happens everytime I focus on discord
That wouldn't be very nice if muted people got kicked D:
my micro phone doesn't work so it doesn't matter if i mute
All I got is GIMP
i have MS Paint π
Xith, you should check out Glimpse
a wot
It's a fork of GIMP that I prefer
It focuses a bit more UI and interactions and aims to be more for a "professional" crowds and setting
awwww, well I haven't really used since it 2017. I thought it was still active =[
@rugged root nor solids, gasses, or liquids. Cats are made of cats.
True
Schrodinger's Cats
Dogs > Cats
Don't do dat
Cats is eevil
Oh interesting. The odd "jumping" the screen does is only when my mouse is somewhere within Affinity Designer
!tempmute 381466412289490945 1d Posting gifs with gifs that use gay as a deragory term is unacceptable here. Make sure you re-read our code of conduct before you come back.
ooh arch linux
:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-09-13 18:59 (23 hours and 59 minutes).
you have my respect
Thank
Had to run, nice to hear you guys o/
brb, gonna mess with streaming stuff in a test server to figure out what is going on
lmao they're trolling the poor guy
@sharp bolt you need to install some C libraries looks like
tΓΌrk varmΔ±?
@novel zinc Sorry, this is an English only server
okey
I wonder how this would work out if you tried to containerize it
This lib with the build stuff
yeah
are you talking Windows or Linux container?
π³ Docker is a required skill for almost every developer in today's world. Learn the basics of Dockerfiles, images, and containers in 100 seconds. https://fireship.io
Docker Docs https://docs.docker.com/
#docker #dev #100SecondsOfCode
Install the quiz app π€
iOS https://itu...
most of linux containers come with GCC
thanks
go with the flow with manjaro
WSL?
We use it Windows containers
!tempmute 734495251863044207 1d screaming in vc
:ok_hand: applied mute to @snow iris until 2020-09-13 19:08 (23 hours and 59 minutes).
Fucking hell
how is kat streaming?
We gave her permissions
I dont see her having any special role
This is a special case
She makes cool stuff
I do have a contributors role now though
A well earned one
noice
clicks tongue
!ban 734495251863044207 Maybe you should reconsider what your point is on this server. Joining a voice chat and screaming as loud as you can doesn't contribute anything useful.
:ok_hand: applied ban to @snow iris permanently.
stupid trolls
ikr
a wot
It's a website I like to pull from for free stock images for design project mockups
can i do that
do what
hmm maybe if i run administrator
lmao hemlock
I'm glad someone found that funny. I wasn't sure if it would work

give me one second, boyf talking
Why do i get that warning?
@trail flax #βο½how-to-get-help
hi
Speaking of price gouging by Martin Shkreli
It's called 'diffuse thinking'
Salvador Dali had a particular technique he used
He lied on his back holding a spoon above a plate
When he falls asleep the spoon hits the plate and wakes him up.
So you stay in the state where you're nearly asleep.
broo i've heard about that, i wanna try it sometime @stuck furnace
well we are talking about programmer life
figma
`
exname =input("bijnaam:")
print("Ewa " + name + exname + "," + " Dit is de nieuwe versie van de vorige canculator, V2 dus.\nIk wil al in het begin een dikke SO aan LARKizzzzz geven.\nHet is + en - btw")
invoer = input("kies: +/- ?")
a =float(input(" Eerste getal:"))
if a != float
print("error")
b = float(input("Tweede getal: "))
if invoer == "+":
c = a + b
print("Uitkomst: " + str(c))
elif invoer == "-":
c = a - b
print("Uitkomst: " + str(c))
else:
print("ERROOOORRRRRRR\nGEVORRRRRRRRR JE HEBT EEN FOUT GEMAAAAAAAKTTTTTTT")
@jaunty geyser
try/except
@slate oracle plz man
!tempmute 719697455934996640 5d joinspamming voice
:incoming_envelope: :ok_hand: applied mute to @slate oracle until 2020-09-17 20:20 (4 days and 23 hours).
this is not cool.
i wanna write n queen algorithm
and i want to know how many array i need use
and it need be 2D array?
exname =input("bijnaam:")
print("Ewa " + name + exname + "," + " Dit is de nieuwe versie van de vorige canculator, V2 dus.\nIk wil al in het begin een dikke SO aan LARKizzzzz geven.\nHet is + en - btw")
invoer = input("kies: +/- ?")
invoer = invoer.replace(" ", "")
if (invoer == "+" or invoer == "-"):
a =float(input(" Eerste getal:"))
b = float(input("Tweede getal: "))
if invoer == "+":
c = a + b
print("Uitkomst: " + str(c))
elif invoer == "-":
c = a - b
print("Uitkomst: " + str(c))
else:
print("ERROOOORRRRRRR\nGEVORRRRRRRRR JE HEBT EEN FOUT GEMAAAAAAAKTTTTTTT")```
searching the thingy
if youre working with arrays id suggest numpy ig?
This problem is to find an arrangement of N queens on a chess board, such that no queen can attack any other queens on the board.The chess queens can attack in ...
@alpine path thanks
armin ronacher
Slides: https://speakerdeck.com/andrewgodwin/channels-under-the-hood
Django: Under The Hood: http://djangounderthehood.com/
Django: Under The Hood is an annual Django conference for experienced Django developers. Come and learn about the internals of Django, and help to shap...
afk
@dire folio any fix?
try to upgrade pip and try again
next step. download everything of the vs c++ build tools
@dire folio
@dire folio can you join code/help or no?
sorry, im doing code reviews atm
oh okay
so i installed python 3.7 like you said btw
and it still doesn't seem to work
and i installed C++ on visual studios like mr. hemlock said
it is supposed to work on windows
brb
π @crystal fox @dire folio
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious/inappropriate or be for graded coursework/exams.
..where EDM all started =P loll
The Lighthouse - You Don't Like My Cooking?!: Wake (Willem Dafoe) curses Winslow (Robert Pattinson) for not liking his cooking.
BUY THE MOVIE: https://www.fandangonow.com/details/movie/the-lighthouse-2019/MMVBC65C52B734588E31522C4C2AA76C7F63?cmp=Movieclips_YT_Description
Watc...
exname =input("bijnaam:") print("Ewa " + name + exname + "," + " Dit is de nieuwe versie van de vorige canculator, V2 dus.\nIk wil al in het begin een dikke SO aan LARKizzzzz geven.\nHet is + en - btw") invoer = input("kies: +/- ?") invoer = invoer.replace(" ", "") if (invoer == "+" or invoer == "-"): a =float(input(" Eerste getal:")) b = float(input("Tweede getal: ")) if invoer == "+": c = a + b print("Uitkomst: " + str(c)) elif invoer == "-": c = a - b print("Uitkomst: " + str(c)) else: print("ERROOOORRRRRRR\nGEVORRRRRRRRR JE HEBT EEN FOUT GEMAAAAAAAKTTTTTTT")```
@heavy nacelle do you speak dutch?
lmao
DVD Available Now from:-
Certified (15)
PAL - Region Free -
(Will work world wide on PAL compatable DVD players)
DVD extras include interviews and behind the scenes featurette.
jin xuan milky oolong
Lyrics - Doc Brown
Music - Mikis Michaelides
Directed & Animated - Fraser Davidson
Produced - Cub Studio
interesting song/guide
am i alowed to join the voice chat?
yeah why not
weren't you named public static void before 2jin
how did you become a helper
uh there are stuff in pins in #community-meta
what stuff
messages?
oh ya I see
bruh this chat needs to be a podcast
I almost spit out my drink at the tsunami comment
but why
Cheer up, Anakin. Soon you'll score a neat outfit and voice.
Watch more Robot Chicken: http://asw.im/67Jzlm
SUBSCRIBE: http://bit.ly/AdultSwimSubscribe
About Robot Chicken:
Robot Chicken is Adult Swim's long-running stop-motion animated homunculus of a sketch show. Witness ...
!resources @mild ivy
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
same here
yikes
this server region for voice probably died
yeah
I thought my internet was individually shitting the bed
welp
yurp
pain
we could be a robot band
The laggy robots
be boop le le laaah loop
o u c h
what a wonderful kind of day
HEY
good drawing
clearly not
as you can see
not according to bird lore
from the illustration above
but i thought bisk was a toucan
the toucan was artistic inspiration
oooooh
toucan do it.
Give your toucans three cans of pecans.
anything toucan do i can do better
poo pan
What about GIF
scotttttt!!
Choose GIF
@fierce sigil hello
hi
@warm crane please stop joining and leaving rapidly?
cumin ( Ν‘Β° ΝΚ Ν‘Β°)
stfu
The discovery of the toast sandwich occurred when somebody accidentally dropped their toast cause it was too hot
do u salt ur bread
or they removed 3 slices instead of 2
17 people in the vc
Explicit is better than implicit.
!e
import this
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | The Zen of Python, by Tim Peters
002 |
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/apajoqoger
!zen 0
Beautiful is better than ugly.
!zen -1
Namespaces are one honking great idea -- let's do more of those!
The second rule of python is '\n'
!zen 0
Beautiful is better than ugly.
!zen 1
Explicit is better than implicit.
!zen 11
In the face of ambiguity, refuse the temptation to guess.
!zen -1
Namespaces are one honking great idea -- let's do more of those!
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
u don't know my life
What about other war-time recipes?
@sand cloak debatable.
@whole bear ask the gif question, break this chat.
Diagonal is better
Corners have more flavour.
Northerners are supposedly more friendly
The north was where the industrial revolution happened, because of all the coal
Also, most of the coal mines closed in the 80s
London is two cities that grew into each other: London and Westminster

All I remember is doing so much on Henry VIII
That was one of the major things we learned in world history
I still remember a test problem that we had to write out the order of his wives and their fates
In Scotland they call soda 'juice' π
you broke bisk
sry
sweet hells 5000ping
Indonesia is the 4th largest country
This is a list of the world's countries and their dependent territories by area, ranked by total area.
Entries in this list include, but are not limited to, those in the ISO 3166-1 standard, which includes sovereign states and dependent territories. All 193 member states of th...
Makes Africa look tiny.
Drag and drop countries around the map to compare their relative size. Is Greenland really as big as all of Africa? You may be surprised at what you find! A great tool for educators.
Wasn't it to do with rhumb lines or something?
Greetings
hi
tea
Was my mic being stupid?
@abstract glen
!f-string
In Python, there are several ways to do string interpolation, including using %s's and by using the + operator to concatenate strings together. However, because some of these methods offer poor readability and require typecasting to prevent errors, you should for the most part be using a feature called format strings.
In Python 3.6 or later, we can use f-strings like this:
snake = "Pythons"
print(f"{snake} are some of the largest snakes in the world")
In earlier versions of Python or in projects where backwards compatibility is very important, use str.format() like this:
snake = "Pythons"
# With str.format() you can either use indexes
print("{0} are some of the largest snakes in the world".format(snake))
# Or keyword arguments
print("{family} are some of the largest snakes in the world".format(family=snake))
print(f"Ο = {valueofpi}")
Re what I was saying, it'd be like saying print('hello' = 'hi')
function("hello"="world")
!e
print("%c" % "\u03C0" = "%.1f" % 3.1415926)
wouldnt work ^
vs print('hello', end=' ')
@swift valley :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: expression cannot contain assignment, perhaps you meant "=="?
The issue is the stray =
>>> print("%c" % "\u03C0", "=", "%.1f" % 3.1415926)
Ο = 3.1
``` Β―\_(γ)_/Β―
print('hello'=='hi') prints False
afaik sure coconuts are not nuts lol
Precisely peeling potatoes proves practiced professionalism.
https://github.com/ProgrammingNerdGit/Python-A-Pathfinding -first public library π i have no idea how to write a doc π¬
Nice! Markdown is pretty easy BTW, probably more so than coding. Def look into it. π
ok! thanks π
hi @static zealot
hi
kya bolu
ache se bta
no
do you guys think there's any benefits of learning ruby already knowing python?
i think so
Minecraft Speedrunner VS Assassin ft. Notch. This was super intense... Thank you Notch :)
George: https://www.youtube.com/GeorgeNotFound
Follow my socials:
β½ Twitter - @dreamwastaken
β½ Instagram - @dreamwastaken
β½ Snapchat - @dreampublic
Patreon (Plugin): https://www.patreon...
Always benefits to learning new languages!
cya guys, naptime
sleep good my mans

A short film for THTR 1020. (Speaking begins at 1:17)
For clarification: Many words spoken in the video are actual English words. When put together, however, the sentences make little to no sense. While many non-English speakers can pick out words they recognize, they still o...
Can we get a bruh in the chat
f
some old english
Verbs: beran 'bear', cuman 'come', dyde 'did', sittan 'sit', wæs 'was'.
bear?
wæs lol
Γ¦ op
An introduction by David and Ben Crystal to the 'Original Pronunciation' production of Shakespeare and what they reveal about the history of the English language.
Transcript link - http://www.open.edu/openlearn/history-the-arts/culture/english-language/speaking-shakespeare-...
"The happeare man, and litier aske they thice so like you as fuld he broand gan my lamonly.
Carse I cummedicksunbere was, en mucked to and says ver whold doin, when hust re,
I winew who fairs wild nightbout int them unit wasan as so few."
Some of the gibberish my Python script came up with.
Excerpt of the news from Top Gear episode 1, season 14, presenting the new Porsche Boxster Spyder 2010. Hammond at his best.
ssessment/Hangman Version 1.2/Version 1.2 isolated.py
Traceback (most recent call last):
File "C:/Users/vivek/OneDrive/Desktop/TAFE Cyber security/Morning session/Assessment/Hangman Version 1.2/Version 1.2 isolated.py", line 2, in <module>
f = open('listOfwords','r')
FileNotFoundError: [Errno 2] No such file or directory: 'listOfwords'
<_io.TextIOWrapper name='listOfwords.txt' mode='r' encoding='cp1252'>
text = '''apple
pear
grape'''
words = words.split('\n')
#thus
words == ['apple', 'pear', 'grape']```
<_io.TextIOWrapper name='listOfwords.txt' mode='r' encoding='cp1252'>
with open("file.txt",'r') as f:
f_con = f.read()```
I was typing the same thing
with open('filename', 'r') as file:
text = file.read()```
words = text.strip().split('\n')
word = ''
scannedFile = "wordlist"
Opens file for reading and extractes words from list
f = open(f"{scannedFile}.txt", "r")
calculates length of list
data = f.read()
wordlist = data.split()
while len({scannedFile}) <= 1:
scannedFile = input(("Error: Insufficient words in list. Please type the name of a file which contains at least 2 words: "))
f = open(f"{scannedFile}.txt", "r")
## recalculates length of list
data = f.read()
wordlist = data.split()
print("There are",len(wordlist),"words in this list.")
scannedFile = "wordlist"
## Opens file for reading and extractes words from list
f = open(f"{scannedFile}.txt", "r")
## calculates length of list
data = f.read()
wordlist = data.split()
while len(wordlist) <= 1:
scannedFile = input(("Error: Insufficient words in list. Please type the name of a file which contains at least 2 words: "))
f = open(f"{scannedFile}.txt", "r")
## recalculates length of list
data = f.read()
wordlist = data.split()
print("There are",len(wordlist),"words in this list.")```
word = ''
scannedFile = "wordlist"
## Opens file for reading and extractes words from list
f = open(f"{scannedFile}.txt", "r")
## calculates length of list
data = f.read()
wordlist = data.split()
while len(wordlist) <= 1:
scannedFile = input(("Error: Insufficient words in list. Please type the name of a file which contains at least 2 words: "))
f = open(f"{scannedFile}.txt", "r")
## recalculates length of list
data = f.read()
wordlist = data.split()
print("There are",len(wordlist),"words in this list.")```
#generates random word and tells user how many characters are in the word
import random
with open('wordslist.txt') as fr:
lines = fr.readlines()
word = random.choice(lines) if lines else None
print('\n')
print("your word is",len(word),"characters long")
word = ''
scannedFile = "wordsList"
Opens file for reading and extractes words from list
f = open(f"{scannedFile}.txt", "r")
calculates length of list
data = f.read()
wordlist = data.split()
while len(wordlist) <= 1:
scannedFile = input(("Error: Insufficient words in list. Please type the name of a file which contains at least 2 words: "))
f = open(f"{scannedFile}.txt", "r")
## recalculates length of list
data = f.read()
wordlist = data.split()
print("There are",len(wordlist),"words in this list.")
#generates random word and tells user how many characters are in the word
import random
with open('wordsList.txt') as fr:
lines = fr.readlines()
word = random.choice(lines) if lines else None
print('\n')
print("your word is",len(word),"characters long")
you werre the CEO of apple how come it is that u need, you are a role model for people and u come to this server adn ask for help that is emabrrising
have you looked at stackoverflow
Selects an input file by name. The file should exist before attempts to open it in the following step β If the file does not exist, the user should be prompted to re-enter a file name. It is possible for the file name to default to βdefault.txtβ which should exist in the directory βword-listsβ.
b) It should load the selected file to a list of words containing in the file. The list must contain at least one word. If the list does not contain at last one word, report an error, and return to obtain a file that does contain at least one word.
c) The program must then randomly select a word from the resulting list to be used as the secret word
@cursive mason
@cursive mason stackoverflow is a website where people answer questions like this, that question must have been asked on that website
just google it
ok let me try
#try to load file into wordlist
while len(wordlist) == 0:
#prompt for file
#try to load file into wordlist```
word = ''
scannedFile = "wordsList"
Opens file for reading and extractes words from list
f = open(f"{scannedFile}.txt", "r")
calculates length of list
data = f.read()
wordlist = data.split()
while len(wordlist) == 0:
scannedFile = input(("Error: Insufficient words in list. Please type the name of a file which contains at least 2 words: "))
f = open(f"{scannedFile}.txt", "r")
## recalculates length of list
data = f.read()
wordlist = data.split()
print("There are",len(wordlist),"words in this list.")
#generates random word and tells user how many characters are in the word
import random
with open('wordsList.txt') as fr:
lines = [each.strip()for each in fr.readlines()]
word = random.choice(lines) if lines else None
print('\n')
print("your word is",len(word),"characters long")
word = ''
scannedFile = "wordsList"
## Opens file for reading and extractes words from list
f = open(f"{scannedFile}.txt", "r")
## calculates length of list
data = f.read()
wordlist = data.split()
while len(wordlist) == 0:
scannedFile = input(("Error: Insufficient words in list. Please type the name of a file which contains at least 2 words: "))
f = open(f"{scannedFile}.txt", "r")
## recalculates length of list
data = f.read()
wordlist = data.split()
print("There are",len(wordlist),"words in this list.")
#generates random word and tells user how many characters are in the word
import random
with open('wordsList.txt') as fr:
lines = [each.strip()for each in fr.readlines()]
word = random.choice(lines) if lines else None
print('\n')
print("your word is",len(word),"characters long")
while True:
filename = input("Enter file")
try:
with open("filename", "r") as f:
words = f.read().split()
except FileNotFoundError:
print("File not found")
continue
if len(words) <= 1:
print("Not enough words")
continue
else:
break
#Hang man code here
def function():
while True:
filename = input("Enter file")
try:
with open("filename", "r") as f:
words = f.read().split()
except FileNotFoundError:
print("File not found")
continue
if len(words) <= 1:
print("Not enough words")
continue
else:
return words
words = function()```
wait
yes = True
def run():
if(yes):
#yada
else:
run()```
def function():
while True:
filename = input("Enter file")
try:
with open(f"{filename}.txt", "r") as f:
words = f.read().split()
except FileNotFoundError:
print("File not found")
continue
if len(words) <= 1:
print("Not enough words")
continue
else:
return words
words = function()```
@eager pulsar Try this
hmmmmmmmmmm
no
just the name
not the extension
without txt
print('Files in current directory:')
print(os.listdir())```
I think you are using my old code
copy the new one
and don't enter the file with the extension
only the name
can you share your current code?
no delete that
word = ''
scannedFile = "wordsList"
Opens file for reading and extractes words from list
def function():
while True:
filename = input("Enter file")
try:
with open(f"{filename}.txt", "r") as f:
words = f.read().split()
except FileNotFoundError:
print("File not found")
continue
if len(words) <= 1:
print("Not enough words")
continue
else:
return words
words = function()
calculates length of list
data = f.read()
wordlist = data.split()
while len(wordlist) == 0:
scannedFile = input(("Error: Insufficient words in list. Please type the name of a file which contains at least 2 words: "))
f = open(f"{scannedFile}.txt", "r")
## recalculates length of list
data = f.read()
wordlist = data.split()
print("There are",len(wordlist),"words in this list.")
#generates random word and tells user how many characters are in the word
import random
with open('wordsList.txt') as fr:
lines = [each.strip()for each in fr.readlines()]
word = random.choice(lines) if lines else None
print('\n')
print("your word is",len(word),"characters long")
def function():
while True:
filename = input("Enter file")
try:
with open(f"{filename}.txt", "r") as f:
words = f.read().split()
except FileNotFoundError:
print("File not found")
continue
if len(words) <= 1:
print("Not enough words")
continue
else:
return words
print(words)
print(words)
Thank you
I am from India
Murica
But like you should not just copy paste
No doctor
No
Whatt
Yea
Good choice
hmmmmmmmmm
I don't think that is a good idea just tell them to make a folder and put it in a folder
from tkinter import filedialog
import tkinter as tk
root = tk.Tk()
filename = filedialog.askopenfilename()
root.destroy()```
It goes back but does not ensure desktop
You can use @somber heath 's solution
no one knows everything
If you want you can DM anytime if you want help
hey guys know some HD wallpaper?
cheers man
Malbolge
There is a language named JSFuck
JavaScript bad
Not really
r/masterhacker
Debatable
Node.js and JS is much faster than python
JavaScript
no not python
Link? @past elk
for the list
PYPL popularity of programming language
F
f
another?
For all those people who find it more convenient to bother you with their question rather than search it for themselves.
What theme do you want?
Star wars
etc
ok
ok
ok
ok
F
F
F
maybe dark art
What is your library about?
a* path finding alg
import antigravity






