Skip to content

debug python input() some error  #96

@tatwww

Description

@tatwww

HI @albilu

Below is my code, it is a simple printing program, but when I use the debug function, I cannot enter the counter, or maybe I don't understand the function. Can you help me, I use netbeans 19 + python plugin 1.5

`
import string

try:
inputSize = int(input("Enter size of pattern: "))
except ValueError:
print("Size of pattern must be an integer, try again.")
quit()

if inputSize < 0:
print("Size of pattern can't be less than or equal to 0 , try again")
quit()

for currentLayel in range(inputSize):

for inlineElement in range(inputSize):

        # 0-3 loop
        # 3               3            1
    if inlineElement >= inputSize - currentLayel:
        index = currentLayel + inlineElement
        print(string.digits[index % 10], end="")
    else:
        print("*", end="")
    
print("")

`
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfixed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions