Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
EnPy3 /
20120920eLine break The following code snippet generates 100 random digits and prints one after the other: import sys import random as r UPTO = 100 def main(): for i in range(UPTO): print(r.randint(0, 9), end="") print() Modify the code that it prints just 10 digits in a line. Example: 8816362140 4460651954 6917509824 6810211402 3696392147 9637243638 4462786058 2306285239 0826916343 1837115597 |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |