[Python] Python[Python] Python

🎳

A Billion Bowling Pins

Week 5, 2026

import math Pins = int(input("How many pins: ")) Rows = (-1 + math.sqrt(1 + 8*(Pins))) / 2 Rows= math.floor(Rows) print(Rows)