#voice-chat-text-0

1 messages ยท Page 818 of 1

wise cargoBOT
#

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

001 | I have 7 but some are rotten...
002 | I am going to remove the rotten apples.
003 | [<__main__.Banana object at 0x7f421f2cd3d0>, <__main__.Banana object at 0x7f421f2cd3a0>, <__main__.Banana object at 0x7f421f2cd370>, <__main__.Banana object at 0x7f421f2cd340>, <__main__.Banana object at 0x7f421f2cd310>]
004 | I now have 5 bananas after removing the rotten ones.
uncut meteor
#

!e

my_dict = {1: 'a', 2: 'b'}

# k = key
# v = value
new_dict = {v: k for k, v in my_dict.items()}
print(new_dict)
wise cargoBOT
#

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

{'a': 1, 'b': 2}
flint skiff
#
Traceback (most recent call last):
  File "main.py", line 27, in <module>
    bot.reload_extensions(cogs)
AttributeError: 'Bot' object has no attribute 'reload_extensions'
#
#Import Discord library!
import discord

#Importing commands
from discord.ext import commands
# This is the variable that will define 
# an instance of dababy bot.

from dotenv import load_dotenv
#importing getenv to run the token

from os import getenv

#importing env 

bot = commands.Bot(command_prefix = "ye!",
                    intents = discord.Intents.default())


@bot.event
async def on_ready():
    """Tells the owner if the bot is running and ready to go."""
    print(f"\n======================\nBot is now on standby\n======================")

cogs = ("dababy_commands", "rickastley_commands")
for cog in cogs:
  bot.reload_extensions(cogs)

load_dotenv()
TOKEN = getenv('TOKEN')
#Run commmand
bot.run(TOKEN)
#

How do I fix the error?

pine ledge
#

Hey

peak thorn
#

Sorry I had my mic on

whole bear
#
using System;

namespace ConsoleGameHelper
{
    public class Dice
    {
        /// <summary>
        /// The face value of the Dice.
        /// </summary>
        public int FaceValue { get; set; } = 1;

        /// <summary>
        /// Only a Potentate of the Rose should know what this is for...
        /// </summary>
        public int RosePetals => (FaceValue == 3 || FaceValue == 5) ? FaceValue - 1 : 0;

        public static implicit operator int(Dice dice) => dice.FaceValue;

        public static implicit operator Dice(int number) => new Dice { FaceValue = number };
    }
}
vagrant skiff
#

hello

whole bear
#

hello

vagrant skiff
#

whats going on?

#

is that even python?

#

oh

#

:')

#

0_o

#

i've been coding for 4 years

#

i started coding python at 10

#

yeah

#

i used mit.edu.scratch

#

scratch the DnD

#

i'm muted yeah

#

@spare pollen

#

not in help 0

#

in voice chat 0

#

C# is hard to learn

#

yo

#

be my teacher lmaooo

uncut meteor
#

!e

from __future__ import annotations

class Path:
    def __init__(self, path: str):
        self.path = path

    def __truediv__(self, other) -> Path:
        return Path(self.path + f"/{other}")

    def __repr__(self):
        return self.path

my_path = Path(".")
my_path = my_path / "sub_dir"
print(my_path)

my_path = my_path / "another_dir"
print(my_path)
wise cargoBOT
#

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

001 | ./sub_dir
002 | ./sub_dir/another_dir
vagrant skiff
#

damn

#

imagine being able to code a execute command

#

couldn't be me.

uncut meteor
#

!e

from __future__ import annotations

class Path:
    def __init__(self, path: str):
        self.path = path

    def __truediv__(self, other) -> Path:
        return Path(self.path + f"/{other}")

    def __repr__(self):
        return self.path

my_path = Path(".")
my_path = my_path / "sub_dir"
print(my_path)

my_path = my_path / "another_dir"
print(my_path)
wise cargoBOT
#

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

001 | ./sub_dir
002 | ./sub_dir/another_dir
vagrant skiff
#

would i be able to host a discord bot on this python bot

#

like !e with the discord bot

#

sadge

#

3 second hosting

uncut meteor
#

!docs pathlib

wise cargoBOT
#

New in version 3.4.

Source code: Lib/pathlib.py

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

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

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

vagrant skiff
#

lmaoooo

#

which script?

#

the C#?

whole bear
vagrant skiff
#

what does it do

#

it gets a directory?

#

hello @faint ermine

#

enjoy the python and C# talk show

#

lol

#

it's an interactive python and C# talk show

#

it is lmao

#

yeah

#

i have it open

#

wait

#

@whole bear

#

oh ok

#

well

#

lol

#

yh

#

i got that

#

R.I.P.

#

thats dope.

#

thats sick

#

i like that

#

you said you made consts in the beggining

#

constants

#

but is that even possible in python

#

BRO

#

MY LIFE IS A LIE

#

wobly bruh

faint ermine
#

!e ```py
A = 1
A = 2

wise cargoBOT
#

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

[No output]
vagrant skiff
#

!e
APPLE = "banana"
BANANA = "APPLE"
APPLE = BANANA
print(BANANA)

wise cargoBOT
#

@vagrant skiff :white_check_mark: Your eval job has completed with return code 0.

APPLE
vagrant skiff
#

yeah

#

you can't

#

only in java

#

in java you can write

#
const this_is_a_constant = 'hi';
var this_is_a_normal_var;
this_is_a_normal_var = 'hello';
#

js ^

#

not sure if i did it right

#

yeah

#

thats why i never finished the js course

#

:)

#

wait

#

i know that

#

but

#

they are kinda the same

#

:(

#

minecraft mods

#

lol

#

you can DD*** in python

#

the hacking thing

#

but no hack talking ig

#

i'm confused.

#

i'm rly confused.

#

LOL

#

well

#

no.

#

RATS and SLAVES

#

yeah

#

thats a good market tho

#

there is a plugin that let them unnoticable to anti virusses

#

self bots are illegal right?

#

coding them too?

#

on hacking forms people flex with their rats

#

lmao

#

on like evil zone

#

ikr

#

i'm making discord bots for money rn

#

wait

#

rly?

#

imma sue apple for not implementing that in their terminal

faint ermine
vagrant skiff
#

lol

#

ip grabber

#

lol

#

jk

whole bear
vagrant skiff
#

looks like cicada 3301

#

nvm

#

was a other thing

#

infolio?

#

might aswell use trello

#

i love when websites have this

short gate
#

Hello

vagrant skiff
#

hello

short gate
#

OwO

vagrant skiff
#

UwU

#

sempai

#

is coding self bots illegal?

whole bear
#

what is a self bot?

vagrant skiff
#

eh

#

like

balmy condor
#

hello

vagrant skiff
#

let's say i have a self bot

faint ermine
vagrant skiff
#

you see @wise cargo

#

it's a bot

#

but

#

i'm the bot

#

lol

#

thats what i mean

#

not

#

illegal as

#

so coding them is against TOS

whole bear
#

Yes, just build a regular bot account

vagrant skiff
#

is giving snippets of code to someone which off you know he is using a self bot against TOS

#

@dense ibex little kids can get easily caught

#

they aren't carefull

fierce summit
#

hello

lunar pendant
vagrant skiff
#

hm

#

aight

#

i

#

i'm coding discord bots for money rn

#

LOL

#

woah

#

thats a fan in a mic

#

or a mic in a fan

#

it is

#

it is

#

wdym

#

@fierce summit wdym?

#

is this about the discord module?

#

ohhhhhhhhhhh

fierce summit
#

random.choices(list[0], wights= list[1])[0]

#

[0]

fresh python
#

True and false

uncut meteor
#

!docs random.choices

wise cargoBOT
#

random.choices(population, weights=None, *, cum_weights=None, k=1)```
Return a *k* sized list of elements chosen from the *population* with replacement. If the *population* is empty, raises [`IndexError`](https://docs.python.org/3/library/exceptions.html#IndexError "IndexError").

If a *weights* sequence is specified, selections are made according to the relative weights. Alternatively, if a *cum\_weights* sequence is given, the selections are made according to the cumulative weights (perhaps computed using [`itertools.accumulate()`](https://docs.python.org/3/library/itertools.html#itertools.accumulate "itertools.accumulate")). For example, the relative weights `[10, 5, 30, 5]` are equivalent to the cumulative weights `[10, 15, 45, 50]`. Internally, the relative weights are converted to cumulative weights before making selections, so supplying the cumulative weights saves work.
fresh python
#

Yes or no

vagrant skiff
#
random.choices(list[0], wights= list[1])[0]
#

*^^

#

wdym?

whole bear
#

lol

cum_weights=None
vagrant skiff
#

cum

#

srs

#

lmao

faint ermine
#

!d random.choice

wise cargoBOT
#

random.choice(seq)```
Return a random element from the non-empty sequence *seq*. If *seq* is empty, raises [`IndexError`](https://docs.python.org/3/library/exceptions.html#IndexError "IndexError").
vagrant skiff
#

you got this <3

#

linux.

#

i do

lunar pendant
#

I think the question would be : how many of you don't use linux

balmy condor
#

me

faint ermine
#

!e ```py
import random

for i in range(4):
c = random.choices("abc", weights=[10,1,1])
print(c)
print(c[0])

wise cargoBOT
#

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

001 | ['b']
002 | b
003 | ['a']
004 | a
005 | ['a']
006 | a
007 | ['a']
008 | a
vagrant skiff
#

he is asking how to make a list of names in linux

#

oh

#

nvm

#

the seed cmd

#

no

fresh python
#

Se

#

Sed

vagrant skiff
#

@faint ermine its linux

#

sed

#

i have no clue lmao

#

corpse just joined 0_o

#

ehhhhhhh

lusty marsh
#

!py

print(-0.1 in range(-1, 1))
#

!e

print(-0.1 in range(-1, 1))
wise cargoBOT
#

@lusty marsh :white_check_mark: Your eval job has completed with return code 0.

False
vagrant skiff
#

-1 is negative and so its false

faint ermine
#

!e ```py
print(list(range(-1, 1)))

wise cargoBOT
#

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

[-1, 0]
uncut meteor
#

!e

first, *_, end = range(1, 5)
print(first, end)
wise cargoBOT
#

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

1 4
uncut meteor
#

woah

#

thats awesome

short gate
#
import monado
from monado import Arts
from monado.monadoUtil import MonadoArts as ma,MonadoConfigError
from monado.monadoUtil.specUtil import dumpStats
from monado.monadoUtil.statsFormat import *

try:
  user=monado.InitMonado(user="Homs")
  user.defineUserName("Shulk")
  user.defineStats(
    maxLevel=99.0,
    maxHP=5135.0,
    maxStrength=405.0,
    maxEther=417.0,
    maxAgility=117.0
  )
  a=monado.ArtsTuple(Arts.TS,Arts.BkS,Arts.LH,Arts.StE)
  b=monado.ArtsTuple(ma.Bst,ma.Nch,ma.Shd,ma.Arm,ma.Ccl)
  user.importArts(a,b)
except MonadoConfigError:print("Error: Cannot configure the Monado.")
else:
  with open("/monado/direct/src/monado_config.xc","wb+") as f:
    f.write(dumpStats(user,verbose=True,enableWarning=False))

# Python module for the Monado

๐Ÿ‘

faint ermine
#

!e ```py
print(-1 < -0.1 < 0)

wise cargoBOT
#

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

True
short gate
vagrant skiff
#

what does it do

lusty marsh
#
x = 0.1
print(x >= 1 and x <= 2)
vagrant skiff
short gate
#

!py

#

!docs Exception

wise cargoBOT
#

exception Exception```
All built-in, non-system-exiting exceptions are derived from this class. All user-defined exceptions should also be derived from this class.
faint ermine
wise cargoBOT
#

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

False
short gate
#

!docs tkinter

#

!docs curses

uncut meteor
#

#bot-commands

vagrant skiff
#

just me or is laundmo lagging a bit?

#

oh nvm

#

it's fixed

#

most likely my internet

#

ยฏ_(ใƒ„)_/ยฏ

faint ermine
#

!e ```py
print(type(range))

wise cargoBOT
#

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

<class 'type'>
vagrant skiff
#

im gonna hop off

#

cya'll

uncut meteor
#

ah

faint ermine
#

!e ```py
import ast
import dis
print(ast.dump(ast.parse("range(1)")))
dis.dis("range(1)")

wise cargoBOT
#

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

001 | Module(body=[Expr(value=Call(func=Name(id='range', ctx=Load()), args=[Constant(value=1)], keywords=[]))], type_ignores=[])
002 |   1           0 LOAD_NAME                0 (range)
003 |               2 LOAD_CONST               0 (1)
004 |               4 CALL_FUNCTION            1
005 |               6 RETURN_VALUE
short gate
#

!e

import ast,dis
a="print(\"Absolute Tartarus\")"
print(ast.dump(ast.parse(a)));dis.dis(a)
wise cargoBOT
#

@short gate :white_check_mark: Your eval job has completed with return code 0.

001 | Module(body=[Expr(value=Call(func=Name(id='print', ctx=Load()), args=[Constant(value='Absolute Tartarus')], keywords=[]))], type_ignores=[])
002 |   1           0 LOAD_NAME                0 (print)
003 |               2 LOAD_CONST               0 ('Absolute Tartarus')
004 |               4 CALL_FUNCTION            1
005 |               6 RETURN_VALUE
short gate
#

OwO

fiery hearth
#

Guys can we deploy django site in github

#

any one free?

forest zodiac
#

actually

#

you can only deploy static sites which use css html and some js

#

@fiery hearth

#

deploy it on heroku or pythonanywhere

fiery hearth
#

okay

royal lily
#

!e

print("Test")
#

cool

fresh python
#

sed -i "s/sol/chuva/" caminhodoarquivo.py

#

" ... "

#

grep -nir "palavra procurar" . -> ./ -> /caminhodoarquivo

forest zodiac
#

@fresh python

#
from os import listdir
for i in listdir('D:/programming'):
    print(i)
balmy condor
#

hi

fresh python
#

hello

thin fox
#

nice name @heavy nacelle

sick dew
#

@somber heath very fun vc you got there xD

#

I say that and everyone unmutes xD

somber heath
#
def add(a,b):
    return a+b```
balmy condor
#

u can shame my code if u want

#

@heavy nacelle

#

what was the command for the pastebin?

#

wait ill post it online

#

yes, i am insane myself

#

its not finished yet

#

im trying to use recursion to solve a crossword

#

me?

#

@heavy nacelle

#

check if its screwed

#

on the case

#

it should be on the left side

#

uh oh we lost him

somber heath
#
class MyClass:
    def __add__(self, v):
        return 'Hello, world.'

my_instance = MyClass()

text = my_instance + 5
text == 'Hello, world.'

text = my_instance.__add__(5)
text == 'Hello, world.'โ€Š```
#

!e ```py
class MyClass:
def init(self, value):
self.value = value

def __add__(self, v):
    return self.value + v

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

wise cargoBOT
#

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

10
stuck furnace
#

What you working on?

#

Hey Opal ๐Ÿ™‚

#

Hey everyone else ๐Ÿ˜„

fierce summit
#

I'm making a name generator program

stuck furnace
#

Ohh right. Are you looking for a function to make a weighted random choice?

fierce summit
#

I have that

#

but it gives me an empty string

stuck furnace
#

Hmm

#

What was the invocation?

#

(Spelling is abysmal today sorry lemon_pensive )

#

Erm, what were you doing that resulted in the empty string?

#

Mhm

#

Right

fierce summit
stuck furnace
#

Mhm

#

Right ๐Ÿค”

#

Could you post the code here?

#

Hey @full river

#

Erm, you need permission. What do you want to stream?

fierce summit
stuck furnace
#

Hey Jake ๐Ÿ‘‹

#

!stream 768342870859055116

wise cargoBOT
#

@full river

โœ… @full river can now stream.

stuck furnace
#

@full river if you start your stream now, you can keep streaming until you stop.

#

When you stop streaming you need to ask again to start streaming again.

fierce summit
stuck furnace
#

Wasn't meant to be a reply sorry...

fierce summit
#

no problem

stuck furnace
#

If it's just a short section of the code.

fierce summit
#

should I rewrite the variables into english?

stuck furnace
#

No worries. Cya @full river ๐Ÿ‘‹

full river
#

Thank you LX

stuck furnace
whole bear
#

Ello

stuck furnace
#

Ok, this is going to be harder than I thought ๐Ÿ˜…

fierce summit
#

Okay, I write it into english

stuck furnace
#

Erm, do you think you could write a minimal example that re-produces the problem?

#

!eval ```py
import random
letters = list('abcd')
weights = [1, 2, 3, 4]
choices = random.choices(letters, weights=weights, k=10)
print(choices)

wise cargoBOT
#

@stuck furnace :white_check_mark: Your eval job has completed with return code 0.

['c', 'c', 'd', 'd', 'c', 'c', 'd', 'd', 'd', 'c']
fierce summit
#

yeah, I have this (or something like this)

stuck furnace
#

Python has a feature that can help with tracking down this kind of bug (unexpected data).

#

It's assert.

fierce summit
#

Translation:
How long should the word be?
5
What should it start with?
consonant
vowel
don't care
consonant
How many words do you want?
1
Do you want to use weighted consonants?
no
Do you want to check? (this doesn't matter right now)
no

stuck furnace
#

You can use assert to state that you expect some statement to be true at a certain line in the code.

fierce summit
#

Translation:
How long should the word be?
5
What should it start with?
consonant
vowel
don't care
consonant
How many words do you want?
1
Do you want to use weighted consonants?
yes
Do you want to check? (this doesn't matter right now)
no

#

So the problem is that it gives me one less

#

for the same number

dense ibex
#

I have some pizza to eat i'll brb ๐Ÿ™‚

stuck furnace
#

@paper tendon Oh right. You want a ping when someone posts in a particular topical channel?

#

Hmm, you want to get a ping when a help channel is opened? Or when a message is posted in a specific help channel?

#

Not sure I understand the question sorry.

#

@sly gale I heard 'binary tree', what was the other one?

#

A tree is just an undirected graph without cycles.

#

A tree can be given a root, in which case it becomes a rooted tree. Each node in a rooted tree has some number of children.

#

A rooted tree in which every node has at most 2 children is a binary tree.

paper tendon
#

In general when users need help and I am online. Also for posts in specific channels I see activity if channel have new messages.

whole bear
#

oki i was just guessing

spare pollen
#
class MyClass:
    def __init__(self, value1, value2):
        self.value1 = value1
        self.value2 = value2

    def __add__(self, other):
        return self.value1 + other.value2


a = MyClass(5, 4)

print(a)
stuck furnace
#

I'm not sure if that helps.

sly gale
#

@stuck furnace thanks a lot for always helping

stuck furnace
# paper tendon oh ok

We don't have any mechanism in the bot to automatically subscribe to notifications in the help-system channels (the food channels).

plush rock
#

:()

paper tendon
#

As from what I heard today from joe on microsoft python discord there are 600 help conversations that get processed daily

#

And there ware 160k in last year.

stuck furnace
uncut meteor
#

Do you have a login for it?

#

i should probs ask bout that

wise cargoBOT
#

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

<__main__.MyClass object at 0x7fd885a18fd0>
whole bear
#
class MyClass:
    def __init__(self, value1, value2):
        self.value1 = value1
        self.value2 = value2

    def __add__(self, other):
        return self.value1 + other.value2


a = MyClass(5, 4) + MyClass(3, 6)

print(a) // 11```
#

perhaps sth like this

#

wait no

#

should __add__ return ?

somber heath
#

Always.

#

Unless you want it to return None.

whole bear
#

ooops i meant - what should __add__ return ?

#

lol

#

ugh

paper tendon
#

yes

whole bear
#

i m so confused

paper tendon
#

he might want to sum different args in different classes

#

print is printing the arg1 of first call 6 + arg2 of other object 5 = 11

sly gale
#
class MyClass:
    def __init__(self, value1, value2):
        self.value1 = value1
        self.value2 = value2

    def __add__(self, other):
        value1=self.value1 + other.value1
        value2=self.value2 + other.value2
        sum= MyClass(value1,value2)
         return sum
whole bear
#

yeh that is exactly why i was asking the about the return type of __add__

#

prolly it wasnt phrassed nicely ๐Ÿฅด

paper tendon
#

if you want to make them non-accessible to other class you could use __field

stuck furnace
paper tendon
#

!e ```py
class MyClass:
def init(self, value1, value2):
self.__value1 = value1
self.__value2 = value2

def __add__(self, other):
    return self.__value1 + other.__value2

class InhClass(MyClass):
def init(self, value1, value2):
self.__value1 = value1
self.__value2 = value2

def __add__(self, other):
    return self.__value1 + other.__value2

a = MyClass(5, 4) + InhClass(3, 6)

print(a) # 11

This will error.
wise cargoBOT
#

@paper tendon :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 19, in <module>
003 |   File "<string>", line 7, in __add__
004 | AttributeError: 'InhClass' object has no attribute '_MyClass__value2'
paper tendon
#

That is the best way of encapsulation it python that is possible

stuck furnace
#

@fierce summit, I have some tips that could help you debug that code if you wait a second while I help this person in CH0.

paper tendon
#

Equivalent to private in Java or C++ __field attribute.

whole bear
#

oki

#

ty

#

well wasnt my doubt thou lol

fierce summit
#

I'm almost finished with the english rewrite

stuck furnace
#

Ah right ๐Ÿ‘

fierce summit
#

finished

#

now it's in english

stuck furnace
#

Hey

#

Right... lemon_thinking

#

Erm, one sec while I read.

#

Hmm, do you happen to know at what point in the program the problem occurs?

#

One thing you can do is use an assert statement, which is just a way of stating that something should be true at that line.

#

E.g. ```py
assert len(x) == 1

#

So the issue is with choosing_letter_weighted?

#

Can you try running it with a test-input?

#

Erm, or on your machine.

#

It would help if you could write unit-tests for the functions.

fierce summit
#

yes, a second

#

should we go down into a help chanel, so I wont talk over the other person?

stuck furnace
#

Sure

fierce summit
#

I'll share my screen

sick cloud
#

hello @wispy idol

wispy idol
#

hello

sick cloud
wispy idol
#

fine. u?

sick cloud
#

what u doing

#

@paper tendon helo

#

hmm

#

nothing rly

#

yoooo

#

@fierce summit heloo

#

whaa

#

and?

#

hmm

#

gud luck

peak thorn
#

why are you pinging people

sick cloud
peak thorn
sick cloud
#

@spare pollen what r u gonna make tho

sick cloud
peak thorn
#

why not

spare pollen
sick cloud
spare pollen
sick cloud
#

css r gud wdym

#

i hate js

#

?

peak thorn
#

same'

#

js hard

#

my dick longer than martin luther kings speech

sick cloud
peak thorn
#

lol

sick cloud
#

try use flask first ig
which is probably easier to use and learn

peak thorn
#

yes

#

ok bye

sick cloud
#

mayybee

#

depends @spare pollen

#

i dont feel like speaking,
wayy too nervous ๐Ÿฅด

#

ye

#

imagine using the app version of discord

#

im on a browser

#

Damn, u play Clash Royal?

#

which arena r u in?

#

x))

#

@spare pollen how many crowns have u gained so far

#

for this match

#

GG

#

u probably won

#

rip

#

rippp

#

gg tho

#

ye?

#

u from germany?

#

I speak english most of the time

#

marko is probably afk

#

im in south africa rn

#

php is not python?

#

and u should probably search for it

#

Dang

#

they will never be ded

#

dont say that

#

@spare pollen

#

learn python @fresh python

#

or scratch

#

u can make anything

#

u just need the right tools

#

yeah, python has support for popular apps

#

ik, php was cool once upon a time

#

and javascript

#

LOL

#

i do like ur accent tho

#

nooo

#

watch tech with tim

#

and telusko

#

omw i have been to my home country for like 5 yrs

#

This python tutorial aims to teach you python as fast as possible. This python speed course will cover all the fundamentals of python and give you a quick overview of all of the main python features.

โญ๏ธ Thanks to Simplilearn for sponsoring this video and giving you all a 10% discount on their Data Scientist Master's program by using the code: Y...

โ–ถ Play video
#

Telusko:

#

Python Became the Best Programming Language of 2018.
Python is used in Machine Learning, Data Science, Big Data, Web Development, Scripting.

Full playlist : https://youtu.be/hEgO047GxaQ?list=PLsyeobzWxl7poL9JTVyndKe62ieoN-MZ3

Check out our website: http://www.telusko.com

Editing Monitors :
https://amzn.to/2RfKWgL
https://amzn.to/2Q665JW
http...

โ–ถ Play video
#

^^ Telusko

#

LOL

#

yee

#

yeah

#

and java

#

and kotlin

#

Flask

#

FLASKKKKKKK is easier to use

#

and learn how things work

#

Welcome to the first python django tutorial on my channel. Django is a full stack web framework that allows for rapid development of websites. In this tutorial I will be showing how to setup and install django and talk about how to navigate between different pages.

Source Code: https://techwithtim.net/tutorials/django/setup/

Playlist: https://...

โ–ถ Play video
#

@fresh python ^^^^^^

fresh python
#

Django

sick cloud
peak thorn
sick cloud
#

stop being obsessed with django lol

humble geyser
#

No Mr. hemlock today?

peak thorn
#

What kinda music do you guys listen to while coding?

sick cloud
#

@fresh python learn python first

#

and then u gonna learn django

peak thorn
sick cloud
#

no its

#

dunder

#

!e

class d:
  def __init__(self):
     print("ggg")
d()
wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

ggg
fresh python
#

What this Def

#

Means

#

Is like

#

Public class ?

#

It's a class

humble geyser
#

you know any language?

fresh python
#

Maybe

humble geyser
#

which one

fresh python
#

Php

peak thorn
#

def

humble geyser
#

that is only web specific

peak thorn
#

def

humble geyser
#

idk if php has functions lol

sick cloud
#

welcome back

humble geyser
#

learn something like javascript or python

peak thorn
#
      return a * b

humble geyser
#

they are pretty easy to get started with

fresh python
#

I started with PHP

#

I'm thinking about python for so long

sick cloud
fresh python
#

Oh

sick cloud
#

EnD PoInsT

fresh python
#

Its the same as any class

sick cloud
#

@sly gale which class r u in?

peak thorn
#

@fresh python

function functionName() {
    //code to be executed;
}
sick cloud
#

no one speaks german here

peak thorn
#
<html>
   
   <head>
      <title>Writing PHP Function with Parameters</title>
   </head>
   
   <body>
   
      <?php
         function addFunction($num1, $num2) {
            $sum = $num1 + $num2;
            echo "Sum of the two numbers is : $sum";
         }
         
         addFunction(10, 20);
      ?>
      
   </body>
</html>

@fresh python

sick cloud
#

also, i think i should ask for perms to stream

peak thorn
#

ok

#

what

topaz schooner
#

^_^

#

lol

#

same here

#

XD

#

hhaa

peak thorn
#

youre pfp moves

topaz schooner
#

yeah

#

lol

#

who

#

I'm from India

#

lol Why

sick cloud
#

whaa

#

i'd go to sweden for once

#

nahh

#

im gud sir

#

u like that tho

#

!e

class hmm:
   def __init__(self, *args, **kwargs):
       print("i wonder whether this works")

   @property
   def rip(self): 
       print("It works ig")

class GG(hmm):
   def __init__(self, *stuff, **kwargs):
       super(GG, self).__init__(*stuff, **kwargs)


f = GG() 
f.rip
wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

001 | i wonder whether this works
002 | It works ig
sick cloud
#

yup 100% correct

fresh python
#

Yup

topaz schooner
#

yeah

sick cloud
#

!e

class hmm:
   def __init__(self, *args, **kwargs):
       print("i wonder whether this works")
   @property
   def rip(self): 
       print("It works ig")
class GG(hmm):
   def __init__(self, *stuff, **kwargs):
       super(GG, self).__init__(*stuff, **kwargs)
f = GG() 
f.rip
wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

001 | i wonder whether this works
002 | It works ig
sick cloud
#

hmm

#

i thought it wouldn't work

#

but nvm

fresh python
#

Eval

sick cloud
#

I wonder smth

#

!e

eval("exit()")
print("Nope, it didn't work")
wise cargoBOT
#

@sick cloud :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 |   File "<string>", line 1, in <module>
004 | NameError: name 'exit' is not defined
sick cloud
#

there is a builtin exit...

#

!e

import sys
sys.exit()
print("Nope, it didn't work")
wise cargoBOT
#

@sick cloud :warning: Your eval job has completed with return code 0.

[No output]
sick cloud
#

hmm

#

@whole bear gg

#

@whole bear can't u skip or smth

whole bear
#

i do

#

i watch at 2X speed moreover

sick cloud
peak thorn
#

i am so bored rn

sick cloud
#

ye, kind of

#

@whole bear send the test data pls

sly gale
sick cloud
#

@noble copper wtf

noble copper
#

srry

sick cloud
#

nope

noble copper
#

yeah, Vue mastery is completely free for a weekend!

sick cloud
#

what is that?

noble copper
#
Vue Mastery

Vue Mastery is the ultimate learning resource for Vue.js developers. We release weekly video tutorials and articles as well as the proud producers of the official Vue.js News. You can consume it in newsletter and podcast format at news.vuejs.org.

sick cloud
#

never heard of it

noble copper
#

Vue.js is the best JS front-end framework, imo. If you want to build websites.

sick cloud
noble copper
#

sure, you can use what works best for you.

sick cloud
gentle flint
#

@whole bear

#

!e

import string
print(string.ascii_lowercase)
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

abcdefghijklmnopqrstuvwxyz
gentle flint
#

might be useful

#

lol

sick cloud
#

lol

gentle flint
#

or, conversely

whole bear
#

just lol

gentle flint
#

!e

import string
print(string.ascii_uppercase)
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
fierce summit
#

hello

gentle flint
#

hi

fierce summit
#

I have a question

#

How does random.shuffle exactly work?

gentle flint
#

no idea, sorry

fierce summit
#

Because I'm trying to do this:
list = ['a', 'b', 'c']
list2 = random.shuffle(list)
x = ' '.join(list2)
and the result for list2 is None

sick cloud
#

@sly gale u still stuck?

#

here is smth i made:

#
stuff = ["bella","label","roller"]
def func(stuff):
    new_stuff = "".join(stuff)

    old = {}

    for i in new_stuff:
        old[new_stuff.count(i)] = i

    sorted_ = list(old.keys())
    sorted_.sort(reverse=True)
    stuff_, more_stuff = old[sorted_[0]], old[sorted_[1]]
    return [stuff_, more_stuff]
print(f"Return: {func(stuff)}")
print(f'Return: {func(["cool","lock","cook"])}')
#

its not 100% perfect tho

#

!e

stuff = ["bella","label","roller"]
def func(stuff):  # im trying to make this unreadable btw
    new_stuff, old = "".join(stuff), {}
    for i in new_stuff: old[new_stuff.count(i)] = i
    sorted_ = list(old.keys())
    sorted_.sort(reverse=True)
    return [old[sorted_[0]], old[sorted_[1]]]
print(
    f"Return: {func(stuff)}\n"
    f'Return: {func(["cool","lock","cook"])}'
)
wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

001 | Return: ['l', 'e']
002 | Return: ['o', 'c']
sick cloud
#

its suppose to return['l', 'l', 'e']

#

but it returns ['l', 'e']

#

that's the problem we have rn

sly gale
#

My program has started to have time errors and i never said you suck you have the slickest of fingers man

flat sentinel
#

this is my teacher

#

reply

stuck furnace
#

Guys, don't be mean.

gentle flint
#

k

stuck furnace
#

Oh right ๐Ÿ˜„

#

Hmm. Ok.

hybrid bramble
#

yo dudes

stuck furnace
#

Yo ๐Ÿ‘‹

whole bear
#

๐Ÿ˜„

gentle flint
#

yo

#

it is sunday my dudes

hybrid bramble
#

im back

#

and with a mic : D

gentle flint
manic lichen
gentle flint
#

my pc; debian with i3wm ^

gentle flint
stuck furnace
#

Yeah, more 'quirky' than crazy.

gentle flint
#

stallman literally eats foot skin

stuck furnace
#

There's no denying that he's a smart guy though.

dense ibex
#

Same with Terry Davis

stuck furnace
#

Oh yeah. They have an open source bios or something?

gentle flint
stuck furnace
#

!eval ```py
import random, itertools, timeit

def generate_unoptimised(num_x, num_y):
x_vals = random.sample(range(num_x), num_x)
y_vals = random.sample(range(num_y), num_y)
lines = []
for x, y in itertools.product(x_vals, y_vals):
lines.append(
f"if x == {x} and y == {y}:\n"
f" z = {random.randrange(100)}"
)
return '\n'.join(lines)

def generate_optimised(num_x, num_y):
x_vals = random.sample(range(num_x), num_x)
y_vals = random.sample(range(num_y), num_y)
blocks = []
for x in x_vals:
lines = [
f"if x == {x}:"
]
for y in y_vals:
lines.append(
f" if y == {y}:\n"
f" z = {random.randrange(100)}"
)
blocks.append('\n'.join(lines))
return '\n'.join(blocks)

num_runs = 100
num_variations = 200

variations = [
(random.randrange(5, 20), random.randrange(5, 20))
for _ in range(num_variations)
]

unoptimised_times = [
timeit.timeit(
stmt = generate_unoptimised(x, y),
setup = f"x, y = random.randrange({x}), random.randrange({y})",
number = num_runs,
globals = globals(),
)
for x, y in variations
]

optimised_times = [
timeit.timeit(
stmt = generate_optimised(x, y),
setup = f"x, y = random.randrange({x}), random.randrange({y})",
number = num_runs,
globals = globals(),
)
for x, y in variations
]

print(sum(unoptimised_times), sum(optimised_times))

wise cargoBOT
#

@stuck furnace :white_check_mark: Your eval job has completed with return code 0.

0.11016880767419934 0.017634850926697254
stuck furnace
#

this @gentle flint

#

Erm, it's just one-off code so it doesn't need to be pretty ๐Ÿ˜„

gentle flint
#

so it's 6.24722080907504 times faster

#

nice

stuck furnace
#

I'm not 100% sure I did it correctly but whatever...

#

Back in a bit ๐Ÿ‘‹

gentle flint
#

k

dense ibex
#

I'll brb :()

stuck furnace
#

():

dense ibex
#

:()

stuck furnace
#

Is that meant to be a duck? ๐Ÿ˜„

dense ibex
#

Idk honestly I just kinda typed it lol I never typed that before.

stuck furnace
#

Ah right.

#

Greetings.

whole bear
#

greetings can i get er um maybe video?

stuck furnace
#

!stream 537553907363086343

wise cargoBOT
#

@whole bear

โœ… @open tulip can now stream.

manic lichen
#

Muh GPU

#

GTS 8800

whole bear
#

ooooo buy me one now or else

#

pls i need it my gpu gets to 100c

manic lichen
dense ibex
#

200 that's good honestly you can't buy a gpu without selling your kidneys anymore

whole bear
#

ill give you my Radeon RX 560X Series

gentle flint
#

hacked together a dirty script to give me the ip address of a mac address on the network

import os
import datetime
import subprocess
import xmltodict
import json

wanted_addrs = ["00:60:B3:43:E2:50"]

print("Initialising network scan at")
print(datetime.datetime.now().strftime("%H:%M:%S"))
result = subprocess.run(['nmap', '-sn', '-oX', '-', '192.168.1.0/24'], stdout=subprocess.PIPE)
print("scan completed, parsing output")
result_decoded = result.stdout.decode()
result_parsed = xmltodict.parse(result_decoded)
result_json = json.dumps(result_parsed)
result_python = json.loads(result_json)
result_list = result_python["nmaprun"]["host"]

print("output parsed, printing results \n \n")
for i in result_list:
    if i["status"]["@reason"] != "localhost-response":
        if i["address"][1]["@addr"] in wanted_addrs:
            print("MAC address:")
            print(i["address"][1]["@addr"])
            print("IP address")
            print(i["address"][0]["@addr"])
            print("\n \n")
dense ibex
#

That is awful code and I love it!!!

whole bear
#

oh fucking god

stuck furnace
#

When I was at uni we had to submit our assignments via ssh ๐Ÿ˜„

gentle flint
#

at the OU?

#

ah, that makes more sense

stuck furnace
#

OU I think use email? It's been so long since I was actually on a course ๐Ÿ˜…

#

Oh, the online system right.

gentle flint
#

yeah

stuck furnace
#

Ah, thanks for reminding me of the time Oof.

stuck furnace
#

;-;

#

London has pretty similar weather to Seattle actually.

gentle flint
#

not surprised, lol

stuck furnace
#

Alright, I'm off ๐Ÿ‘‹

manic lichen
whole bear
#

@carmine imp

carmine imp
#

srry, I glitched out

whole bear
#

what happen

#

oh

carmine imp
#

brb

#

my internet is so shit

manic lichen
carmine imp
#

don't hack me pls

eager ocean
eager ocean
#

@tawny plover here join that

faint ermine
#

!voice @slate imp

wise cargoBOT
#

Voice verification

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

oak timber
#

Really fun

silk grove
#

are you guys talking about xonsh

whole bear
#

i drew a duck

#

๐Ÿ™‚ quack

eternal bough
#

ok thanks!

oak timber
whole bear
#

z>:(

short gate
#

Hello. OwO

#

What is that program?

#

ASS!

  • AVGN
#

๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜๐Ÿ˜

#

@whole bear What's that program you're using?

#

@whole bear Can you tell me the name?

#

Of the program.

hollow bison
#

Like one of those songs where the lyrics change based on what you're reading as you listen to certain tune

whole bear
#

can you not fucking judge my fukcing art?

#

i drew a snek

hollow bison
#

Chill bro am not judging. All I'm saying is that we see what we want to see... one might say it's a duck, to another it might be a snake, maybe even a worm to another

hollow bison
whole bear
#

YES

hollow bison
#

Well you should be comfortable knowing that you're doing a hell of a better job than i can...

whole bear
#

do you know what command prompt is?

hollow bison
#

๐Ÿ˜‚ ๐Ÿ˜‚ ๐Ÿ˜‚ Am still stuck learning data strings

whole bear
#

do you?

hollow bison
whole bear
#

this is coded in command prompt

hollow bison
#

Whoa... btw can python be used on cmd?

whole bear
#

yes

hollow bison
#

Are you a pro programmer?

harsh hazel
#

I'm fairly certain that any coding language can run in CMD prompt, just depends what modules(?) you have.

#

C++

#

Javascript

#

Python

whole bear
#

just need something that can run it and such python to exe and just a py file can be executed by the command line

eager ocean
#

idkk

whole bear
whole bear
thin fox
hollow bison
thin fox
whole bear
thin fox
whole bear
hollow bison
whole bear
#

who tf made this?

thin fox
#

emoji? lemon the owner got it made for the server

whole bear
#

LEEEL

fervent hawk
#

cn sumone help me

thin fox
#

omg

whole bear
#

what?

thin fox
#

those warnings

whole bear
#

what? tat is normal

thin fox
#

oh, ok!

sick cloud
#

@paper tendon helo again

gentle flint
#

hai

sick cloud
gentle flint
#

good good

#

hbu

sick cloud
#

Just Woke up lol

gentle flint
#

naiรง

#

woke up 2 hours ago

#

slept about 4

sick cloud
gentle flint
#

oof

vagrant skiff
#

hello

sick cloud
vagrant skiff
#

hello gamer

#

hru

sick cloud
#

Wbu?

vagrant skiff
#

i'm fine

#

yo

#

wtf

sick cloud
#

ye?

vagrant skiff
#

that jumped me

sick cloud
vagrant skiff
#

are u coding rn?

sick cloud
vagrant skiff
#

ah

#

nice

#

@paper tendon your cutting off

sick cloud
#

and doing this paper

vagrant skiff
#

nice

#

hello

#

anyway

#

imma go again

#

cya

sick cloud
gentle flint
#

@vagrant skiff quack

vagrant skiff
#

wsp

vagrant relic
#

guys can u tell me

gentle flint
vagrant skiff
#

or was it just another quack quack joke

gentle flint
#

quack quack

vagrant relic
#

how to check day that i have joined this server

gentle flint
#

who's there

#

quack

#

quack who

#

quack quack

vagrant skiff
#

or

#

!whois @vagrant relic

gentle flint
#

userinfo or smth in #bot-commands

vagrant skiff
#

?whois @vagrant relic

#

idk

#

i'm stoopid

#

but imma go

#

cya

vagrant relic
#

ok

gentle flint
#

@vagrant skiff dyno's not in here lol

pine ledge
#

Hey

gentle flint
#

!user

wise cargoBOT
#

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

gentle flint
#

k then

sick cloud
gentle flint
#

anyway if you run that in #bot-commands you get a nice overview @vagrant relic

#

!user

gentle flint
#

np lol

vagrant relic
#

how to check

gentle flint
#

check what

vagrant relic
#

how many msg i have sent

gentle flint
#

do a search in the search bar

vagrant relic
#

it showing >10

gentle flint
#

from: NIKHIL TAPARIA ๐Ÿš€#2610

#

you have 27

vagrant relic
#

ok

sick cloud
#

\โ›ˆ๏ธ

vagrant skiff
#

i

#

kinda forgot

gentle flint
#

lol

paper tendon
gentle flint
#

oh, those

#

I saw those day before yesterday

humble geyser
#

how is megumin's dad able to stream without the video role

gentle flint
#

he had it, started to stream

#

then continued t0 stream

#

...for 7 hours

humble geyser
#

someone removed his role

gentle flint
#

your stream doesn't autostop if the role goes away

humble geyser
#

yeah, I figured

sick cloud
gentle flint
#

ye idk

sick cloud
#

also, how were they able to get the video role?

gentle flint
sick cloud
#

0_-

gentle flint
#

there this command which gives the video role for x amount of time and then removes it

sick cloud
#

hmm

#

||i wish i can stream lol||

gentle flint
#

||for 7 hours?||

sick cloud
gentle flint
#

||oof||

sick cloud
#

;(

humble geyser
#

7 hours is also fine

#

get the role every time you want to stream sounds nice tbh

sick cloud
humble geyser
#

I know

sick cloud
#

someone who plays mc i see

humble geyser
#

Does anyone use codewars?

whole bear
#

@sick cloud what u din

sick cloud
whole bear
#

oof

somber heath
#

Still streaming, @whole bear? Judging you just a little bit, right now. ๐Ÿ˜

whole bear
#

๐Ÿ˜ 

whole bear
#

hello @runic forum

runic forum
#

dont ping me you idiot

whole bear
#

idiot*

#

why not? im just welcoming you back after your week mute from mr. hemlock?

runic forum
#

yes

#

but it was 6 days if i remember correctly

whole bear
#

6 days, 23 hours 59 minutes and 59 seconds

runic forum
#

well it was technically 7 days but i saw it as 6 days

whole bear
#

are you complaining about a mute?

runic forum
#

nawh im good

whole bear
#

Good

runic forum
#

what are you streaming rn?

whole bear
#

coding

faint ermine
#

@whole bear other peoples mutes are none of your business anyways. dont go around poking people about being muted.

whole bear
#

ok

lament tusk
#

Megumin how you sharing your screen?

#

@whole bear

#

Only voice verified guys can do that?

dense ibex
lament tusk
#

Thanks for you response

#

Hi, can i get video role for 1 hour, i need it because i have question about my code

whole bear
#

WHY WOULD YOU PING THE ADMINS????

gentle flint
#

^

#

that too

#

but also

lament tusk
#

I cant do that?

gentle flint
#

just ask the question

gentle flint
#

it's kinda inadvisable

#

This community has over 140k members iirc

#

if everyone went pinging the admins they'd go mad

lament tusk
#

ohhh, so sorry

random helm
#

pithink if we don't want the ping we'll let them know

gentle flint
#

which multiple admins have in the past

lament tusk
#

Just first time on this server

random helm
gentle flint
#

mmm

#

@lament tusk anyway, what's the question

lament tusk
#

About Python?

gentle flint
#

because i have question about my code

#

question?

lament tusk
#

Its on Russian, i need show it

gentle flint
#

can't you sort of summarise?

lament tusk
#

So, its quadratic equation, and i dont understand lines with question marks

gentle flint
#

o

lament tusk
#

ะ”ะธัะบั€ะธะผะธะฝะฝะฐั‚ = Discriminant

gentle flint
#

do you know what % does

whole bear
#

@lament tusk is this for school?

gentle flint
#

yeah, I can read cyrillic, thx
my russian sux, but that I guessed

lament tusk
#

Its when we dived numbers and its have something

#

Hard to explain

gentle flint
#

you know what % does, right?

#

otherwise I'll explain

lament tusk
lament tusk
#

I know

#

but %.2f

#

what is this

#

and why we have to % of discriminant

gentle flint
#

string rounding

lament tusk
gentle flint
#

!e

print("%.2f" % (39.54484700000000))
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

39.54
lament tusk
#

Whaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat

gentle flint
#

we don't generally use that anymore

#

nowadays we use f-strings

#

I'll show you

#

hang on

lament tusk
#

Ok

gentle flint
#

so f-strings work like this

#

!e

name = "John"
greeting = f"hi {name}"
print(greeting)
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

hi John
lament tusk
#

f"hi what it this

gentle flint
#

you know how strings get combined right

#

hang on

#

brb

lament tusk
#

I never work with that, i do simple math, like solving equation

gentle flint
#

ah, well, this is kinda useful to know

#

so you can combined strings like this

lament tusk
#

combined strings, its like they in 1 line?

gentle flint
#

!e

a = "hi"
b = "there"
print(a+b)
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

hithere
lament tusk
#

AAAAAAAAAAA

gentle flint
#

you can join strings together with +

lament tusk
#

Finlay got it, its really useful

gentle flint
#

but you can also interpolate or format them, like I showed you above

#

where you set a variable equal to smth and then choose where it goes in a string

lament tusk
#

"interpolate of format them" don't understand what you exactly mean by that

whole bear
#

ay yo wtf did i get disconected?

gentle flint
#

to interpolate something is to put something into something else

lament tusk
#

(Cringe)

gentle flint
#

but when we do this to strings we call it string formatting

#

just eave the word interpolate

#

it doesn't matter for this

#

Anyway

#

so you can do

#

!e

broname = "John"
sisname = "Jane"
intro = f"our names are {broname} and {sisname}"
print(intro)
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

our names are John and Jane
gentle flint
#

see?

#

you put one string into another

whole bear
#

anyone know why i got disconnected?

gentle flint
#

nope

whole bear
#

maybe can get video permissions batch?

lament tusk
gentle flint
#

now, to get to your maths thing

lament tusk
#

So i can put f" behind my code and this thing do same thing?

gentle flint
#

I'm getting to that

lament tusk
#

Ok

gentle flint
#

an older way of doing what I showed you above is

#

!e

name = "John"
print("my name is %" % name)