I'm curious about the Python number table.

Asked 2 years ago, Updated 2 years ago, 17 views

A table with its own rules. I'm trying to print it out on Python, but I'm at a loss. I'd appreciate it if you could answer.

python

2022-09-22 20:22

1 Answers

lst = [[i,i+2,i+4,i+6] for i in range(1,64,8)]
for i in lst: print(i)


2022-09-22 20:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.