Hehe

lowtiersubhuman

lowtiersubhuman

Apricot
Joined
Jun 7, 2025
Posts
4,394
Reputation
4,091
# Generate a text file counting from 1 to 1,000,000 (one per line)
output_path = "/mnt/data/count_1_to_1000000.txt"
with open(output_path, "w") as f:
for i in range(1_000_000):
f.write(f"{i+1}\n")
# Verify the number of lines
line_count = sum(1 for _ in open(output_path, "r"))
line_count
 
  • +1
Reactions: BigBallsLarry

Similar threads

idkbtro
Replies
5
Views
132
John6Enjoyer
J
nestivv
Replies
15
Views
429
nestivv
nestivv
menas
Replies
61
Views
1K
Resistance.
Resistance.
menas
Replies
239
Views
2K
Arzenic
Arzenic
greyrock45
Replies
3
Views
256
ScientificLooksmax
ScientificLooksmax

Users who are viewing this thread

Back
Top