Re: [Tutor] Counting the # of iterations OR storing # values in a list

2018-08-13 Thread Peter Otten
Gautam Desai wrote: > I am currently working with the lattice.py code attached. The code is a > simulation that models the interactions between bacteria by producing a > lattice output. > > Once you run the code, there should be both blue and red bacteria that > show > on a lattice. I can

Re: [Tutor] Is there a better way to write my code?

2018-08-13 Thread Neil Cerutti
On 2018-08-13, Rafael Knuth wrote: > I wrote this code below which aims to concatenate strings with their > respective string length. I was wondering if there is a > shorter, more elegant way to accomplish this task. Thanks! > > animals = ["Dog", "Tiger", "SuperLion", "Cow", "Panda"] You can

Re: [Tutor] Is there a better way to write my code?

2018-08-13 Thread Mats Wichmann
On 08/13/2018 09:53 AM, Rafael Knuth wrote: > I wrote this code below which aims to concatenate strings with their > respective string length. did you mean concatenate? because you don't do any concatenation... any time you hear keeping a data element with some information associated, you should

Re: [Tutor] Is there a better way to write my code?

2018-08-13 Thread Mark Lawrence
On 13/08/18 16:53, Rafael Knuth wrote: I wrote this code below which aims to concatenate strings with their respective string length. I was wondering if there is a shorter, more elegant way to accomplish this task. Thanks! animals = ["Dog", "Tiger", "SuperLion", "Cow", "Panda"] # step one:

Re: [Tutor] [OT] Re: Need help in learning Python

2018-08-13 Thread David Rock
> On Aug 13, 2018, at 13:49, Carlos Monge wrote: > > Ok, this may have been a fatal error on my part but I decided to start > fresh and uninstalled my old version of Python. Now when I try to reinstall > I get these error messages.. Have you tried rebooting? Maybe you have some lingering

Re: [Tutor] [OT] Re: Need help in learning Python

2018-08-13 Thread Carlos Monge
Ok, this may have been a fatal error on my part but I decided to start fresh and uninstalled my old version of Python. Now when I try to reinstall I get these error messages.. Setup failed one or more issues caused the setup to fail. Please fix the issues and then retry setup. For more

Re: [Tutor] Counting the # of iterations OR storing # values in a list

2018-08-13 Thread Gautam Desai
Thanks Alan Appreciate your help I’ll try that The code is listed here as well I am currently working with the lattice.py code attached. The code is a simulation that models the interactions between bacteria by producing a lattice output. Once you run the code, there should be both blue and

[Tutor] Is there a better way to write my code?

2018-08-13 Thread Rafael Knuth
I wrote this code below which aims to concatenate strings with their respective string length. I was wondering if there is a shorter, more elegant way to accomplish this task. Thanks! animals = ["Dog", "Tiger", "SuperLion", "Cow", "Panda"] # step one: convert the animal list into a list of lists

Re: [Tutor] [OT] Re: Need help in learning Python

2018-08-13 Thread Wallis Short
Hi Alan Have a look here - I could write it but why invent the wheel :) https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/ A quick "How To" to remote ssh into the WSL once installed sudo apt-get install openssh-server sudo vi /etc/ssh/sshd_config

[Tutor] Fwd: Re: Argparse Error

2018-08-13 Thread Alan Gauld via Tutor
Forwarding to list since I seem to have messed up the address last time... Forwarded Message Subject:Re: [Tutor] Argparse Error Date: Sun, 12 Aug 2018 23:44:04 +0100 From: Alan Gauld Reply-To: tutor To: Nathan Johnson On 12/08/18 19:58, Nathan Johnson

Re: [Tutor] Counting the # of iterations OR storing # values in a list

2018-08-13 Thread Alan Gauld via Tutor
On 13/08/18 06:15, Gautam Desai wrote: > I am currently working with the lattice.py code attached. The server doesn't like attachments so strips them off for security. As a result we can't see the code. Please resend, but paste the code into the body of your message (in plain text to preserve

[Tutor] [OT] Re: Need help in learning Python

2018-08-13 Thread Alan Gauld via Tutor
This thread is getting seriously off topic, but I'm interested so I'm letting it run... :-) On 13/08/18 07:46, Wallis Short wrote: > To learn Ubuntu, I would recommend installing Windows Subsystem for Linux > onto your existing Windows 10 setup and then get the Ubuntu (or SUSE and > Debian) from

[Tutor] Counting the # of iterations OR storing # values in a list

2018-08-13 Thread Gautam Desai
Good evening, I am currently working with the lattice.py code attached. The code is a simulation that models the interactions between bacteria by producing a lattice output. Once you run the code, there should be both blue and red bacteria that show on a lattice. I can manipulate the size of

[Tutor] Counting the # of iterations OR storing # values in a list

2018-08-13 Thread Gautam Desai
Good evening, I am currently working with the lattice.py code attached. The code is a simulation that models the interactions between bacteria by producing a lattice output. Once you run the code, there should be both blue and red bacteria that show on a lattice. I can manipulate the size of

Re: [Tutor] Need help in learning Python

2018-08-13 Thread Wallis Short
I am also from a Linux background and I second exactly what James and David said. To learn Ubuntu, I would recommend installing Windows Subsystem for Linux onto your existing Windows 10 setup and then get the Ubuntu (or SUSE and Debian) from the Microsoft store and install. It does have a few