#voice-chat-text-0
1 messages · Page 735 of 1
you'll learn a lot from those streams
Checklist is here: https://gist.github.com/w3cj/449d54c8d10f931706fddeb3562e0a84
Client code is here: https://github.com/w3cj/product-CRUD-client
Server code is here: https://github.com/w3cj/product-CRUD-server
- [2:34] Setup client folder
- [2:38] index.html
- [2:55] Add bootswatch CDN
- [5:33] Create index.js
- [6:09] git init
- [6:31...
even if you don't use js you can follow along
it's really simple stuff
good thing, I've learned JS before
don't remember it well, cause never used it after learning it
trueee
yeah, I have a class called Fundamentals of IOT and Applications in my syllabus right now
now they're teaching something called Anaconda using python
One of the important things a developer should have is the ability to look things up
you cant expect to know everything
so Internet 😄
" Knowing the answer , doesnt mean you know how to answer the question " - Quote of the day
Damn couldnt say it better than myself
its not even a joke
its a really good quote
someone should pin it
Waaay too many times i jsut seek the answer from Stack Overflow
yeah, @faint ermine a lot of things were said right, worth remembering
except that 416 error part, cause that went over me
Why I cant join to this voice channel?
maybe your voice banned or something
you need to get at least 50 comments
you have to wait 3 days and have more 50 msg
Aha okay
@marble shadow you should be able to join, but you wont be able to talk
Its hard
no I'm not able to join
Hi
@faint ermine when did you become a helper?
I wanna TALK! 😄
lol me too
lol
You should be able to join the channel by clicking on the name of the channel.
but rules are rules
I know man
I can't believe it, and Opal's still not been given that honor 😠
I need send 50msg
you too!
Yep
@zealous wave press ctrl + k, and top of list come last channel you posted into
i think its "dunder chili"
na its just chili lol
Sorry bro
I can write this way, I just write in my native language so that my colleagues from my country can see me!
Okay?
50 messages is a lot
lol chill ones your be active you'll eventually get in
!rule 4
4. This is an English-speaking server, so please speak English to the best of your ability.
just talk here like normal
OK
just dont spam
What should I write in this channel?
just talk about anything
your secrets
Is this an offtopic channel?
#voice-chat-text-0 is this specifically offtopic channel?
k
there's also OFF-Topic/General (3 channels)
like #ot0-psvm’s-eternal-disapproval
just publicly say if there okay if they DM
@mystic marlin, how did you make your custom discord activity?
this is an awesome server, you'll never need to dm anyone, you always get a response in no time
do you guys any recommendation for image processing
@mystic marlin can you write the name of the program here?
college club has their own
video
for image processing
but how can i improve myself
in image processing
Thanks
not the docs, but the homepage, I had docs saved as my bookmark
i counter with the latest version: https://www.postgresql.org/docs/13/index.html

How can I find out how many messages I have sent?
What are you doing?
My ears!!!!
Who can help with the configuration of Linux arch on xfce?
@faint ermine aboout Database Management Systems , Do you think I should prioritize on MySQL or PostgresSqL ?
IMO, PostgreSQL, its much more flexible
but I heard soo much good stuff on PostGresSQL
alright thats a good enough answer for me to prioritize on since I've heard so many good things about it
either are fine though, you probably wont be able to take advantage of the flexibility untill you're a bit down the line
i've found this https://www.tutorialspoint.com/web_developers_guide/index.htm
for basic web concept stuff
so this is imp => HTTP request methods (GET, POST, PUT, PATCH and DELETE)
ok, I'm going to bed now
🖖
@faint ermine, where can I find a text channel, where can I ask a question and will I receive an answer in text form?
@whole bear check out #❓|how-to-get-help
Thank you
I told you the same earlier, but I guess you didn't read it before
spend some time reading it, then you won't need any help in how to get help
Yes my dear friend, I have forgiven your message. I apologize a thousand times.
Guys, bye everyone! I went to Linux!
THANK YOU
uh
as a first distro?
No)
oh good
I thought you were using Linux for the first time and immediately using Arch
@gentle flint, are you using Linux too?
Wow, you have a lot of experience. It is very good!
Which distribution?
Debian stable so far, 'cuz my dad didn't feel like maintaining stuff and it's what he used at work
I've yet to switch to anything else
_,met$$$$$gg. eli@saladin
,g$$$$$$$$$$$$$$$P. OS: Debian 10 buster
,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.19.0-13-amd64
,$$P' `$$$. Uptime: 41m
',$$P ,ggs. `$$b: Packages: 2276
`d$$' ,$P"' . $$$ Shell: bash 5.0.3
$$P d$' , $$P Resolution: 2960x1050
$$: $$. - ,d$$' WM: i3
$$\; Y$b._ _,d$P' GTK Theme: Nordic [GTK2/3]
Y$$. `.`"Y$$$$P"' Icon Theme: Zafiro-icons
`$$b "-.__ Font: Sans 10
`Y$$ CPU: Intel Core i5-4570 @ 4x 3.6GHz [27.8°C]
`Y$$. GPU: Mesa DRI Intel(R) Haswell Desktop
`$$b. RAM: 1081MiB / 7897MiB
`Y$$b.
`"Y$b._
`""""
41 minutes
19:15:14 up 42 min, 1 user, load average: 0.40, 0.51, 0.60

🦜
LMAO
he's a hacker omg
cowbunga
does anyone have a good little project to make to make with "while loops" on python? I just did one to print:
1
12
123
1234
12345
x = ""
count = 0
while count < 5:
count += 1
x = x + str(count)
print(x)
print("")
any other projects u guys have for me?
write a program to take numbers input from the user. stop taking input when the user inputs "quit"
find the median, the max number, the min number, and the sum of all the numbers
@shut goblet
@shut goblet do you know the input function?
what better time to learn it than now
yessir ❤️
ill lyk when im done and u can tell me if there was a better way to write it ❤️
np
how do i stop a program from running in my terminal
ctrl+c
thank you
@honest pier do i need to import something to be able to get median sum etc..?
no, just do calculations
no
dw dw lol im kidding
❤️
im getting some trouble. could someone help me out? (for the sum, median, max and min number)
its telling me the list dose not have int
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
did you convert the input to an int? @shut goblet
^ that
you can check that by seeing if there are quotes around your values in the list when you print it
yup their are quotes
oops sorry
then it's still a string
\
convert it to an int before inserting it in the list
Oh
well, check if it consists of integers first
check if it's valid with isnumeric string method
['1', '2' etc..]
before inserting each value into your list
if value.isdigit():
value = int(value)
mylist.append(value)
is there a way to convert an entire list to int? i found a way to remove the "quit"
by simply adding if statement
and .remove()
[int(x) for x in list]
gotchu boss
that won't touch the values in the list
you'd actually have to assign that value to the list
ik
so it doesn't need to modify anything
I was thinking he wanted to modify the list
so that everything consisted of integers
this will return a value, but not modify the original list
so I was saying he'd have to still assign the returned value to the original llist variable
this is everything btw
two equals signs for comparison
the order of the statements in the loop is a bit unintuitive
you're missing a colon on your if statement
FINALLY!! THXXX
yesss!!! now quit no longer goes into the list
now time to convert list into ints
@tough cove who tf are you and why are you tryna send me a friend request
its fine
having hard time converting list of strings to int
ok 1s
❤️
if value.isdigit():
value = int(value)
mylist.append(value)
can u explain it?
I didn't mean that
ok gotchu
only change list to the name of your list
you now have to actually do something with the list it returns
IT WOKRS!!!!
kudos for chili then
if i did not want to use list compression, would this work:?
not as such
please enlighten me
int(x) will take each value from the list, convert that value to an integer, and leave the list untouched
no
i mean
that will add x as an integer to the end of each list
it's
the
thing
you
were
already
using
if it works, then why change it
no
i already have var numbers = [] above
numbers = [int(x) for x in numbers]
you should be using var at all
this isn't js
and yeah, just do what chili says
it's simpler and neater
i understand the list comprehension. but how would i do it without using list comprehension
i know list comp is way better. but just to learn. how would i use if to do the same thing?
''' py
you want another way?
and why dosent this work?
yea the way im tryna do it
just to learn
aand undderstand
numbers2 = []
for i in numbers:
numbers2.append(int(i))
then what's your issue? @shut goblet
i just wanted to know if that would work 😢
best way to find out if something works is to do it
fak ur right
if it doesn't work you'll get an error
!e ```py
numbers = ["1", "2", "3"]
numbers2 = []
for i in numbers:
numbers2.append(int(i))
numbers = numbers2
print(numbers)
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 3]
thx ❤️
mmhm
mmmmmmmmmmmmmmmm
mmmmmmmmmmmmmmmmmmmmmm
that's what she said
IM BACK
45 seconds e
your point is
umm, y ?
how do i check if the len of a list devided by 2 is an int or a float
@versed island h e l l o
@gentle flint
how u doing ?
@shut goblet type(obj) returns the type of obj. You could also subtract the int of a number from the number to see if it's zero.
@shut goblet
does this work?
no
%2 is another way
if type(midpoint) == float
if type(midpoint) == float
try:```py
if isinstance(midpoint, float):
!e
x = bool(3%2)
print(x)
@gentle flint :white_check_mark: Your eval job has completed with return code 0.
True
!e
x = bool(4%2)
print(x)
@gentle flint :white_check_mark: Your eval job has completed with return code 0.
False
!e
mylist = [1, 2]
print(bool(len(mylist)%2))
@gentle flint :white_check_mark: Your eval job has completed with return code 0.
False
yeah, that'll work
!e
x = bool(2%2)
print(x)
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
False
Hmmmm
it'll return 0 or 1
which bool() will convert to True or False
when numbers = [1, 2, 3, 4]
It tells me the median is 3 when its supposed to say 2.5
any reason why?
midpoint is always a float
well, there is a much better way
hmm
check if the length is even or odd using modulus
store bryster @whole bear
i got it
Is there a required number of messages for voice verification aswell?
and no spam
can i doit spam?
also you need to check out voice-verification channel
then remove it lol
see this channel's desxcription
no it will make you waite 2 weeks
ohh
says the person who isn't a mod
Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:
• You have sent less than 50 messages.
• You have been active for fewer than 3 ten-minute blocks.
!source @whole bear
i
Unable to convert '@hasty kestrel' to valid command, tag, or Cog.
!source
oops
also you can find other stuff at https://pydis.com/
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.
oops
whoever was asking about the log thing
.topic
Suggest more topics here!
hell
mars for me
your moms bed
.topic
tell me when you find her address, ive been looking for a while
The DMZ between the two Cypruses
that's deep 😂
@scarlet plume you in here?
After exactly 2h of work non stop, i have finally finished!!!!!!!
no, why?
no like u in the game?
Duct tape (also called duck tape, from the material it was originally made of) is cloth- or scrim-backed pressure-sensitive tape, often coated with polyethylene. There are a variety of constructions using different backings and adhesives, and the term 'duct tape' has been genericized to refer to different cloth tapes with differing purposes. A ...
nope
how do i paste all the code @honest pier ? just paste it all in here?
sure
numbers = []
x = ""
while x != "quit":
x = input("Tell me a number!: ")
numbers.append(x)
if x == "quit":
numbers.remove("quit")
numbers2 = []
for x in numbers:
numbers2.append(int(x))
numbers = numbers2
#
#sum
#
print("the sum of the numbers is", sum(numbers))
#
#median
#
numbers.sort()
count = len(numbers)
if count % 2 == 0:
midpoint = (count / 2) - 1
midpoint2 = midpoint + 1
midpoint2 = int(midpoint2)
midpoint = int(midpoint)
median = (numbers[midpoint] + numbers[midpoint2]) / 2
else:
midpoint = (count / 2)
midpoint = int(midpoint)
median = numbers[midpoint]
print("the median of the numbers is", median)
#
# max val
#
print("The maximum value is", numbers.pop())
#
#min val
#
print("The minimum value is", numbers[0])
write a program to take numbers input from the user. stop taking input when the user inputs "quit"
find the median, the max number, the min number, and the sum of all the numbers
any criticism ?
and how long would this have taken you guys to do?
this is my first ever program that actually does something!!
@honest pier any suggestions bro ❤️ ?
min() and max() for minimum/maximum value
u can do that!
!e print(min([1,2,3])); print(max([1, 2, 3]))
@faint ermine :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 3
dunno, im on phone right now so its a bit hard to get a overview
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
There are two common ways to iterate over a dictionary in Python. To iterate over the keys:
for key in my_dict:
print(key)
To iterate over both the keys and values:
for key, val in my_dict.items():
print(key, val)
you can't spam to bypass it
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
where do i find the solutions?
!tempmute 238257529220628482 3d No, you're not getting in by spamming.
:incoming_envelope: :ok_hand: applied mute to @lyric kraken until 2021-01-19 20:46 (2 days and 23 hours).
!tvban 238257529220628482 "2 weeks" Spamming messages to up your message count is not the way to get voice verified. You can still join voice channels without being verified; you just have to get some legitimate server activity in order to get verified.
:incoming_envelope: :ok_hand: applied voice ban to @lyric kraken until 2021-01-30 20:47 (13 days and 23 hours).
hey Xithrius
Hello
hello !!
do you know where i can find solutions?
to the projects listed in !projects
Not sure, sorry.
alright! I like ur name
Thanks lol
sounds futuristic
anyone down to review my code?
Of course, the stockers are great
if i inserted the wrong address, will i be able to claim a new pack?
wrong haha
Probably not. But you can change the info iirc.
@fair citrus YOU HAVE A QUESTION
BUT DOES HE HAVE ANSWERS
@gentle flint
@whole bear
👉 👈 HELLO
👉 👈 HELLO
_,met$$$$$gg. eli@saladin
,g$$$$$$$$$$$$$$$P. OS: Debian 10 buster
,g$$P"" """Y$$.". Kernel: x86_64 Linux 4.19.0-13-amd64
,$$P' `$$$. Uptime: 4h 11m
',$$P ,ggs. `$$b: Packages: 2276
`d$$' ,$P"' . $$$ Shell: bash 5.0.3
$$P d$' , $$P Resolution: 2960x1050
$$: $$. - ,d$$' WM: i3
$$\; Y$b._ _,d$P' GTK Theme: Nordic [GTK2/3]
Y$$. `.`"Y$$$$P"' Icon Theme: Zafiro-icons
`$$b "-.__ Font: Sans 10
`Y$$ CPU: Intel Core i5-4570 @ 4x 3.6GHz [27.8°C]
`Y$$. GPU: Mesa DRI Intel(R) Haswell Desktop
`$$b. RAM: 1225MiB / 7897MiB
`Y$$b.
`"Y$b._
`""""
Feminist is speechless after a simple statement from a member of the audience.
TikTok made by: Soggy_Nugget - Please follow him🙌
subscribe or the policeman will come to your house
if you have any video requests then tell me in the comments, must not be inappropriate
also great way to lose a ton of money
yeah
unless it's fake cash
yeah
what is scrum master
a master of scrum
okhaay
not to be confused with a scum master
I'll be back in the vc in 20 min
tyt
@zealous wave @gentle flint @whole bear, bye going off
sleep is the only time the toxins in our brains are cleared.....
if you use reddit there's too many to clear
TikTok made by: Soggy_Nugget - Please follow him🙌
subscribe or the policeman will come to your house
if you have any video requests then tell me in the comments, must not be inappropriate
more sleep then ig?
Well i've heard a lot of glowing reviews, never been on it myself.
sure
@gentle flint, hey bro, after 2 hours i install my system!
wahoot
<@&267629731250176001>
cheers, handled
coolio
ah well
👕 Instinct Vol. 5 Apparel is out now! https://monster.cat/yt-inv5
🎧 Support on all platforms: https://Monstercat.lnk.to/CrabRave
A huge shout out to Noisestorm whose artistry made this song and video possible - he produced it all! 🦀
Every year after the most intense tropical storms, thousands of crabs gather on this remote island. Now for the ...
is there a more pythonic way to achieve this list ?
[1000*(x+1) for x in range(20)]
could do
[1000 * num for num in range(1, 21)]
bye griff
cya
oh woops lol I thought I was is general
was wondering why its so quiet
thanks @uncut meteor
The original way was pythonic either way
there is no need to use map and a complicated lambda i think
not really complicated, youre just saying what to do for each element
yeah I'd rather not declare any functions/lambda expressions if I can avoid that
dude
where did everyone go
that is disturbed
ohh
to catch some zzzzs
goodnight everyone!
I'm not playing another round at this time of morning
go
now
i came on the server
right now
and scribbel
NOW
bye
lol
@hybrid compass :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/buyomefami.txt
!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!
hello
hi
@snow marlin you are from north korea, right?
Why yes , how did you know ?
because you are a rude boy
and why did you say that ?
😅
ya i know that
so Pisang is Banana in my home coutnry language
so fried Banana
Sang like Sing Sang Song
its a song by sergey bolkov
i think its hardbass? i just searched pysang and thats what it came up with
just a play of words in this is** THE PYTHON Discord Server **
me no gusta
i know you said so
but i searched for how you spelled it first
i think the gros michel still exists
or something very similar to it
I have no clue what the hell is plantain
banana
but everytime i heard of it , its only in South America
but before we selectively bred the shit out of it
and its an ingredients for Mexican food or something
Musa balbisiana
isnt that the original banana before we mixbreed it to make it look like the one today
lol now I can talk
I like spicy food to be honest
bruh your Indian , itll be crime not like Spicy food
yes, I am suprised too
i only joined on the 15th so i got another day or so yet
how do you know?
Maybe I am mexican
oh lord
@snow marlin but how you get verified so quickly
bruh i just follow the rules on the #voice-verification
oh you typed 50 msg
wait 3 days after joining and post 50 non spammy chat messages
awesome
yeah!
its 20 past 5 at the moment
if a self driving AI in my car could decide that killing me was better than killing someone in the middle of the road i probably wouldn't use it
hm
protocol 3: protect the pilot
or let me put it this way if i gave you a self driving car and said oh right if the car AI gets into a situation where it has to choose between killing someone in the middle of the road and you it might kill you would you use it?
rude boy spotted
hmm wbu Sophia?
sophia?
Yes
you don't know?
the bobiverse is pretty good
from todays perspective they would be stupid yes
but back then?
they didn't know
wait have i been in this R6 queue for 12 minutes
VIDEO GAMES MAKE YOU VIOLENT!!111!!! (despite multiple studies saying no including some pretty long term studies)
Island Scene https://imgur.com/gallery/khfIb7b
@somber heath Do you have any advice to give to an aspiring python programmer?
Thank you
So essentially you are saying maintaining interest and excitement is important. As well as making sure to expose myself to many different areas of knowledge.
Mhm.
It's scary to think about me 10 years from now thinking how fast time has gone.
I heard you mention that earlier
4-5 years
You can continue talking if you like, I am listening
That's a hard no
I heard python was the easiest language and that is the only reason I am here
Sharpie ever learned any other languages?
Do I need to learn computer science stuff alongside programming?
No sir, unless you include english
You don't really need computer science. You just need to know how the computer reads and interprets your code.
What did you do before you learned python? What attracted you to learning it?
Computer science is for if you are doing advanced programming like creating libraries or working on architecture for massive systems.
The youtube algorithm sent me random python videos and I got hooked
I only learned programming to build a game engine.
All the way down to binary
That's super easy
Binary is just base 2
Ooooh yes I love feeling clever
I will gladly milk you dry
Don't take that out of context
Mods we are talking about the propagation of knowledge within the server
Don't worry 😉
A few days now I think
My mic is not the best, so it isn't too big of a deal to me
sure
Honestly I just stole someone else's username and googled a picture of a pencil
I was tired of how bad all my past usernames were
They were so much worse
Oh god
I hope they change my username to something flashy
So you're saying I should change my name to something with noisier characters?
Ok, if you want me to
😒
On second thought, I refuse to let you use your negative peer pressure tactics on me.
It won't work
Sorry buddy
If you don't mind me asking, what timezone are you in?
What is it like there?
Do you have tumbleweeds?
@whole bear I think you get verified because you typed more than 50 messages
Nope, I've been here less than 3 days and sent less than 50 messages
Wow, I thought Australia was just the wild west but east.
@whole bear did you know the capital of australia?
Isn't it only 30-40 million people that live there?
Brisbane?
Maybe?
So there is no capital city?
What is culture capital supposed to mean?
I think government funded schools hardly ever work the way they are intended. This past year I've discovered the vastness of information online. In fact, it's what led me here.
I definitely agree.
@whole bear You are from australia too?
Yes
it's afternoon there right?
so, how's the weather in america
or where you live
btw which state you are from?
Central Time Zone
state?
oh now i got it
Mountain or Eastern?
I didn't know time zones could be separated by 30 minute increments.
Class?
I mean in which standard you are in
Like in india we say that oh, you are in 6th class
in your school
I am finished with the school system.
you are in college?
My parents are gracious enough to let me stay in their house until I figure out what I want to do with my life.
I don't agree with how colleges are run.
What about you?
i am in school
@hallow warren you're server muted fyi
Hello @viral shale, new here?
var date = new Date();
var h = date.getHours();
var m = date.getMinutes();
var s = date.getSeconds();
var fullTime = h + ':' + m + ':' + s;
console.log(fullTime);
document.getElementById("time").innerHTML=fullTime;
}
setInterval(showtime, 10)```
hey everyone
hello
@vestal zinc in hear
hello
hello
is it in the pointing in the right place?
iam trying to import a stockfish library for a program
iam also trying it for the first time
its an engine
to play chess
dose it work if you try just from stockfish import Stockfish
no i need to have the Stockfish point to some engine downloaded seperately
'/stockfish_20090216_x64_avx2' isnt this the right notation to call a file from the same directory?
i have never hurd of this mod but all i can do is suggest looking at this https://www.youtube.com/watch?v=EnYui0e73Rs
This is the first video in creating a chess engine in python using pygame. Enjoy!
Here's a link to the pictures:
https://drive.google.com/drive/folders/1qH7IQj5lj7o3MQIb5TAZhsDr_5f9p8aq?usp=sharing
?
its made by someone and made it opensource
like if we use sockfish we dont need to code the entire engine from the scratch
so dose it play the game or dose it just make the game
its can do lots of stuffs
it can help in making the game
it comes with lots of fuctions
like whether a move is legit or not
like whats the best move for the current board statitics
is it just for chess
yes just for chess
yeah its cool ...
will it work with an onlie chee game or only the one that you made
it will work locally on our pc where we installed the library....
but we can link it with js using flask and upload to heroku or someother platform to make it online
chess.com uses differentengine i guess
stockfish is a free one
ha so it is just for the game that you made
the chess game on windows is working on stockfish
it can be used by anyone in this world to make their own game
very good
are you working on js rigth now ?@reg
google is doing it right now aint it ? @whole bear
why do we want to read a text file and upload it to a webpage?
no its a program that maes a webpage
with open ('text.txt',encoding="utf8") as file:
for line in file:
stripped_line = str(line.strip())
just save it to an array
and call from the array
a=[]
with open ('a.txt',encoding="utf8") as file:
for line in file:
stripped_line = str(line.strip())
print(stripped_line)
a.append(stripped_line)
print(a)
you can navigate through the array and do the required processing
u can use a uv glass instead ..
its cheap
or can use "night light" in windows .. but you use linux anyways 😄 \
yeah its inbuilt
👍
processors?
did you get that thing to work @vestal zinc
Folks.
print(f)
file = f.readlines()
for e in file:
for x in e:
e.replace('\n', '')
print(file)```
Folk.
are you refering to this ?
@whole bear?
yes
with open('map.txt', 'r') as file:
lines = file.read().split('\n')
print(lines)```
yeah we have to create a new file
and we can save the new file though after deleting the old one...
readlines?
f = open("map.txt", "r")
print(f)
file = f.readlines()
for e in file:
file = e.replace('\n', '')
print(file)
!e
my_str = "test\n"
print(my_str.strip())
print(my_str)
print(my_str.strip())
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | test
002 | test
003 |
004 | test
It doesn't.
If you wanted, you could do lines = file.read().strip().split('\n') with mine.
import os
os.remove(file_location)
and u can save the processed on
Ugly. Okay.
lines = file.read()
lines = lines.strip()
lines = lines.split('\n')``` Does this offend your sensibilities less?
with open("file.txt", "r") as file:
lines = [line.strip() for line in file]
That's not bad.
I'd include the mode.
Because the number of times I've truncated a file I wanted to work with...
It's good to get into the habit.
Explicit is better than implicit, yes.
good lokkign***
all about confidence
i got a medle one time for being the best looking
*args *kwargs * * ! * ! * yarrrggs!
lmao
oh no that spellign tho
you got a medal for looking good? your parents put you in a beauty padgeant when you were 5?
medal***
no i made it myself
lmao you MADE your own medal after you saw yourself in the mirror
Was it for being kempt?
Divergence!
cardboard
ewwwww
@gentle flint Better than any English medal, you say? Remind me, what are the colours of the flag of the United Kingdom?
I don't go by colour alone
Does Mick have a passport?
is there a way to run commands in windows like this one here in linux
g++ file.cpp -o file.out && ./file.out, which compiles (before &&) and runs (after &&) the file at the same line?
(Don't freak out with cpp example, just couldn't think of a python one)
I want to do this $env:FLASK_APP = 'file.py' && flask run, but this doesn't work
do u wanna run a flask app ?
Yes.
I don't know it all off the top of my head, and I'd be looking it up, but...yeah.
no, well yeah
you know, in linux, we can connect commands with &&
or ;
I use ;
the difference is that with
command1 && command2
command2 will only execute after command1 has successfully completed
while with
command1; command2
command2 will only execute after command1 has completed
iirc
worked, thanks
"Surprise! Golf!"
😄
What was the scam?
Yea what do they get
Aha.
like "ring'
or like microsoft word
yes
and then you go in and they tell ya to pay
There are phones that have a button pendant like that. They do need to be kept charged though. Calls a programmed series of numbers.
So it's no extra service costs.
Not the pendant.
sos button or somthing
Yeah.
or hold the lock button for a bit
/end story
🖐️ 🔨
why have i heard that name
For whom it would be such a shame if they decided to take up residence in a highrise. Those old balcony railings. So rusty.
what
The tendency of journalists and the like to fall out of windows in Russia.
oh
ohhhhhhh
Which seems to be in vogue at the moment.
what
👀
........but also hosts content creators from other genres such as physical fitness experts, musicians and other creators who post regularly online.
you left this part out
It's not as if lights can't be voice activated.
It's not a stupid thing to believe.
google home
how do I find my ip address? does one even exist for me, if I'm not running a website?
using windows
ipconfig command
Are you talking about your internet-facing ip address?
which one?
there's two
let me google, and I'll read more
sure
what does ip stand for
If you're running a webserver on your computer and you want to access it using the same computer, localhost / 127.0.0.1 will do.
let him google
Depending on how the server port is bound, I suppose.
like the northern lights?
ig i didnt hear it right
baa baa
what does the sheep say
"goto sleep, get some rest"
ok, one question, is/can public IP address assigned to more than one pc?
Ha.
@whole bear here
That's actually a slightly more involved story than you're probably wanting to hear.
What do you consider late?
For now...let's just say 'no' for simplicity's sake.

