Python Forum
enumerate and output control
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
enumerate and output control
#6
(Oct-24-2017, 04:12 PM)atux_null Wrote: The code is posted in my post #1 that i openened this thread.

If that is your code, you would not have gotten "ABAB", in fact that code would not even run:

Error:
Traceback (most recent call last):   File "C:/Python/Math/scratch.py", line 28, in <module>     print(___, end='') NameError: name '___' is not defined
I would suggest you first add some print()'s so you can see what's actually happening with i, k and j. You say you are also supposed to use a number. Where is that?
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Messages In This Thread
enumerate and output control - by atux_null - Oct-23-2017, 07:56 PM
RE: enumerate and output control - by lefkimi13 - Oct-24-2017, 01:18 PM
RE: enumerate and output control - by atux_null - Oct-24-2017, 01:31 PM
RE: enumerate and output control - by sparkz_alot - Oct-24-2017, 02:02 PM
RE: enumerate and output control - by atux_null - Oct-24-2017, 04:12 PM
RE: enumerate and output control - by sparkz_alot - Oct-24-2017, 05:35 PM
RE: enumerate and output control - by atux_null - Oct-24-2017, 06:02 PM
RE: enumerate and output control - by Mekire - Oct-24-2017, 06:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Alternative of this mini code without Enumerate and join function. Ace4Benji 2 2,542 Mar-09-2020, 08:22 PM
Last Post: micseydel
  Code Review: Range and Enumerate lummers 2 2,180 Jan-11-2020, 12:40 AM
Last Post: lummers
  How to transform an enumerate object into a dictionary fad3r 7 4,777 Feb-11-2018, 11:42 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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