Skip to content

for school TS #158

Description

@NickAIPYt

Write a program to generate 10 random numbers between 1 and 10, and print out
the 10 numbers and the total of the numbers.

Activity

  1. gajeraKevin1 commented on Apr 25, 2025

    @gajeraKevin1

    import random

    random_numbers = [random.randint(1, 10) for i in range(10)]

    print("Random numbers:", random_numbers)

    total = sum(random_numbers)

    print("Total:", total)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions