Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Trying to use Jinja2 for loop with Python 3.6
Post: Trying to use Jinja2 for loop with Python 3.6

Hello, I am getting errors with a simple for loop in Jinja which I think should work. My code: {# Server Interface Template #} {% for n in range(240) %} {% if n+1 < 16 %} interface GigabitEther...
benniehanas General Coding Help 0 1,325 Feb-12-2020, 02:44 PM
    Thread: DevNet Help
Post: RE: DevNet Help

Thanks everyone for the input. I need to evaluate it and see how it makes sense to me. Give me a few
benniehanas General Coding Help 6 3,476 Feb-04-2020, 11:51 PM
    Thread: DevNet Help
Post: RE: DevNet Help

one more question: why isn't it instead written as temp{'id'} = id since temp is a dictionary and not a list and the iteration is for one dictionary obj in the overall vlans list?
benniehanas General Coding Help 6 3,476 Aug-08-2019, 06:05 PM
    Thread: DevNet Help
Post: RE: DevNet Help

(Aug-07-2019, 05:25 PM)ichabod801 Wrote: temp['id'] = id                           # store id in the new dictionary (key = 'id') So if you state dictionary['string'] = 'string', Python will insert y...
benniehanas General Coding Help 6 3,476 Aug-07-2019, 07:41 PM
    Thread: DevNet Help
Post: DevNet Help

I am begenning DevNet from a pure Networking background. I have some code I'm looking at from 'Network Programmability and Automation' book. Don't know how 'temp['name'] = name' works. vlans_list = ...
benniehanas General Coding Help 6 3,476 Aug-07-2019, 03:29 PM
    Thread: TurtleWorld on MAC in Python 3.6 issues
Post: RE: TurtleWorld on MAC in Python 3.6 issues

I may have both being used, but can successfully run the following from the newer tkinter version from my 3.6 python version: import tkinter tkinter._test() I cannot run the rest of the code thou...
benniehanas General Coding Help 3 3,736 Jul-09-2018, 05:55 PM
    Thread: TurtleWorld on MAC in Python 3.6 issues
Post: TurtleWorld on MAC in Python 3.6 issues

I have an issue getting TurtleWorld to work for my book "ThinkPython" for version 3.6. I cannot get it to work in pycharm or on my terminal CLI. These are my errors: cha-105889-l:swampy-2.1.7 userna...
benniehanas General Coding Help 3 3,736 Jul-06-2018, 05:33 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020