{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"authorship_tag":"ABX9TyMysVfJxQ4eV9kyGcqZYEay"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","execution_count":null,"metadata":{"id":"dbUEt1IllQcm"},"outputs":[],"source":["#Example 3: Write a program which generates 12 random numbers between 0 and 199"]},{"cell_type":"code","source":["import random"],"metadata":{"id":"N6zkGF9ZlSP3"},"execution_count":null,"outputs":[]},{"cell_type":"code","source":["# Generate 12 random numbers between 0 and 199\n","print(\"Twelve random numbers between 0 and 199 are:\")\n","for x in range(1, 13):\n","  print(\"Random Number\",x,\"is=\",random.randint(0, 199))"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"bHz-rlNxlSUm","executionInfo":{"status":"ok","timestamp":1717678643757,"user_tz":-330,"elapsed":6,"user":{"displayName":"Amit Sachan","userId":"17076119069500437280"}},"outputId":"5deb52b2-0bc6-42fc-eb7b-57b9a704d4f7"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Twelve random numbers between 0 and 199 are:\n","Random Number 1 is= 183\n","Random Number 2 is= 66\n","Random Number 3 is= 150\n","Random Number 4 is= 133\n","Random Number 5 is= 154\n","Random Number 6 is= 77\n","Random Number 7 is= 39\n","Random Number 8 is= 114\n","Random Number 9 is= 107\n","Random Number 10 is= 181\n","Random Number 11 is= 13\n","Random Number 12 is= 94\n"]}]},{"cell_type":"code","source":[],"metadata":{"id":"SYUnhPbhmcE2"},"execution_count":null,"outputs":[]}]}