[Python] How take *args input from user in a function [closed]

Discussão em 'Python' iniciado por Stack, Abril 21, 2025.

  1. Stack

    Stack Membro Participativo

    How take *args input from user in a function in Python.
    I want to take input from user and get the addition user given input.

    def add(*args):
    s = 0
    for i in args:
    s+=i
    print(s)


    Output will be: 180

    Continue reading...

Compartilhe esta Página