P
P
Pista2020-12-10 20:59:53
Python
Pista, 2020-12-10 20:59:53

How to generate numbers from 1 to 100 in Notepad++ using python script?

It is necessary to generate numbers from 1 to 100.
One option is to create empty lines
CTRL + ALT + Enter
and then press ALT + C
5fd26163dc97a316414612.png

I did not like this option. There is a python script

plugin for Notepad++ Python I don’t know, in Google examples are mainly on generating random numbers, help with an example of how to generate numbers from 1 to 100 in python so that the script can be run through the python script plugin

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-12-10
@Pista

editor.addText('\n'.join([str(x) for x in range(1,101)]))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question