On 30/01/19 5:12 PM, Cameron Simpson wrote:
On 30Jan2019 04:24, Chupo wrote:
I am trying to figure out what data type is assigned to variable p in
this code snippet:
for p in game.players.passing():
print p, p.team, p.passing_att, p.passer_rating()
Well, Python comes with a type() builtin
On 30Jan2019 04:24, Chupo wrote:
I am trying to figure out what data type is assigned to variable p in
this code snippet:
for p in game.players.passing():
print p, p.team, p.passing_att, p.passer_rating()
Well, Python comes with a type() builtin function:
print type(p)
Results:
R.Wils
I am trying to figure out what data type is assigned to variable p in
this code snippet:
for p in game.players.passing():
print p, p.team, p.passing_att, p.passer_rating()
Results:
R.Wilson SEA 29 55.7
J.Ryan SEA 1 158.3
A.Rodgers GB 34 55.8
https://stackoverflow.com/q/28056171/1324175
If
I have chosen to stay out of the discussion as it clearly was a TEACHING
example where giving an ANSWER is not the point.
So I would like to add some thought without a detailed answer for the boring
way some are trying to steer an answer for. They are probably right that the
instructor wants th
according to https://pypi.org/project/discord.py/ Discord.py only supports
3.4 and 3.5
On Tue, Jan 29, 2019 at 4:52 PM Hamish Allen <101929...@gmail.com> wrote:
> Hi,
>
> Recently I’ve been trying to code a Discord bot in Python 3.6.2, then I
> realised that some features of discord.py were only
which version of Python? I get Syntax error on 3.7.1
On Tue, Jan 29, 2019 at 12:37 PM Adrian Ordona
wrote:
> The code actually works just the way i copy and pasted
>
> Sent from my iPhone
>
> On Jan 29, 2019, at 12:34, Ian Clark wrote:
>
> just the pure number of letters next to parenthesis wou
Hi,
Recently I’ve been trying to code a Discord bot in Python 3.6.2, then I
realised that some features of discord.py were only available in Python 3.7+
(as seen here on the right near the top
https://docs.python.org/3/library/asyncio.html), so I downloaded 3.7.2. After
correctly changing the
just the pure number of letters next to parenthesis would cause the Parser
to error out
On Tue, Jan 29, 2019 at 12:32 PM Schachner, Joseph <
joseph.schach...@teledyne.com> wrote:
> Yes, that works. Assuming it was correctly formatted when you ran it.
> The formatting could not possibly be run in
back in my day we had to show our professors errors on punchcard! and we
liked it
On Sun, Jan 27, 2019 at 11:51 AM Terry Reedy wrote:
> On 1/26/2019 6:24 AM, Vrinda Bansal wrote:
> > Dear Sir/Madam,
> >
> > After Installation of the version 3.7.2(64 bit) in Windows 8 when I run
> the
> > program
threw this together, let me know what you think
num_list=[]
name_list =
['first','second','third','fourth','fifth','sixth','seventh','eighth','ninth','tenth']
name_it = name_list.pop(0)
while len(num_list) < 3:
try:
num_list.append( int( input(f"Insert the {name_it} number: ")))
except Valu
Like this?
num_max = 0
num_index = 0
name_list =
['first','second','third','fourth','fifth','sixth','seventh','eighth','ninth','tenth']
name_it = name_list.pop(0)
while num_index <3:
try:
num_list = int( input(f"Insert the {name_it} number: "))
except ValueError:
print('Not a number, try
On Wed, Jan 30, 2019 at 8:20 AM Bob van der Poel wrote:
> Isn't the easiest way to do this is:
>
> sorted( [n1,n2,n3] )[-1]
>
> to get the largest value?
>>> help(max)
But the point of this exercise is not to use sorted() or max().
ChrisA
--
https://mail.python.org/mailman/listinfo/python
On Tue, Jan 29, 2019 at 12:52 PM Adrian Ordona
wrote:
> i'm also a beginner reading all the replies helps.
> i was trying the problem myself and came up with the below code with a
> users input.
>
>
> num1 = int(input("Enter first number: "))num2 = int(input("Enter second
> number: "))num3 = int(
The code actually works just the way i copy and pasted
Sent from my iPhone
> On Jan 29, 2019, at 12:34, Ian Clark wrote:
>
> just the pure number of letters next to parenthesis would cause the Parser to
> error out
>
>> On Tue, Jan 29, 2019 at 12:32 PM Schachner, Joseph
>> wrote:
>> Yes, th
Yes, that works. Assuming it was correctly formatted when you ran it.
The formatting could not possibly be run in a Python interpreter, I think.
--- Joseph S.
From: Adrian Ordona
Sent: Tuesday, January 29, 2019 2:52 PM
To: Schachner, Joseph
Cc: Dan Sommers <2qdxy4rzwzuui...@potatochowder.com>;
Anssi Saari wrote:
> Terry Reedy writes:
>> On 1/26/2019 6:24 AM, Vrinda Bansal wrote:
>>> Dear Sir/Madam,
>>>
>>> After Installation of the version 3.7.2(64 bit) in Windows 8 when I run the
>>> program it gives an error. Screenshot of the error is attached below.
>>
>> Nope. This is text only ma
i'm also a beginner reading all the replies helps.
i was trying the problem myself and came up with the below code with a
users input.
num1 = int(input("Enter first number: "))num2 = int(input("Enter second
number: "))num3 = int(input("Enter third number: "))if num1 > num2 and num1
> num3: print(
Explanation: 5 > 4 so it goes into the first if. 5 is not greater than 6, so
it does not assign N1 to MaxNum. The elif (because of the lack of indent)
applies to the first if, so nothing further is executed. Nothing has been
assigned to MaxNum, so that variable does not exist. You're right, i
On 2019-01-29 16:02, Dan Sommers wrote:
On 1/29/19 9:27 AM, Jack Dangler wrote:
wow. Seems like a lot going on. You have 3 ints and need to determine
the max? Doesn't this work?
N1, N2, N3
if N1>N2
if N1>N3
MaxNum = N1
elif N2>N3
MaxNum = N2
elif N1
No. Assuing that you meant to
On 1/29/19 9:27 AM, Jack Dangler wrote:
wow. Seems like a lot going on. You have 3 ints and need to determine
the max? Doesn't this work?
N1, N2, N3
if N1>N2
if N1>N3
MaxNum = N1
elif N2>N3
MaxNum = N2
elif N1
No. Assuing that you meant to include colons where I think
you did, wh
On 2019-01-29 8:44 a.m., Michael Torrie wrote:
> There have been some Python to javascript compilers, or implementations
> of Python in Javascript. So maybe it's possible to make a hybrid app
> using Python.
Here's an interesting project that might work with some hybrid app
development frameworks
On 2019-01-29 5:52 a.m., Bob Gailer wrote:
> An interesting alternatives to create a simple web page to run in the
> phone's browser. If you don't already have a server on the web you can rent
> one from secure dragon for as low as $12 a year. Install websocketd and
> python. Websocketd lets you do
On 1/27/19 7:34 AM, Frank Millman wrote:
"^Bart" wrote in message news:q2k1kk$1anf$1...@gioia.aioe.org...
> You need to do this exercize just by using if, elif and else,
> but in the quotation above, you use "=".
We can use > < and =
Now I wrote:
number1 = int( input("Insert the first
On 1/27/19 5:19 AM, ^Bart wrote:
In my experience based on decades of writing programs...
1. The assignment/exercise/problem should be a write a function with
a particular signature. So first decide on the signature.
def max3(n1, n2, n3):
"Return the max of the three inputs."
retu
kivy has a very steep learning curve. The easy way to use kivy is to
install the kivy launcher app which then lets you run a Python program and
access the kivy widgets. If you really want to dive into kivy I will send
you a presentation I gave on kivy. After a lot of work I did manage to
create an
Terry Reedy writes:
> On 1/26/2019 6:24 AM, Vrinda Bansal wrote:
>> Dear Sir/Madam,
>>
>> After Installation of the version 3.7.2(64 bit) in Windows 8 when I run the
>> program it gives an error. Screenshot of the error is attached below.
>
> Nope. This is text only mail list. Images are tossed
26 matches
Mail list logo