Colab

def my_first_print(*args, **kwargs):
    return print(args, kwargs)


my_first_print(1,2,3,4,5,6)

(1, 2, 3, 4, 5, 6) {}
print(1,2,3,4,5,6)

1 2 3 4 5 6
def my_second_print(*args, **kwargs):
    for a in args:
        print(a, end=" ")

my_second_print(1,2,3,4,5,6)

1 2 3 4 5 6 ```
</div>
</div>
</div>



<div markdown="1" class="cell code_cell">
<div class="input_area" markdown="1">
```python
print(1,2,3,4,5,6, sep = " @@@ ")

1 @@@ 2 @@@ 3 @@@ 4 @@@ 5 @@@ 6
my_second_print(1,2,3,4,5,6, sep = " @@@ ")

1 2 3 4 5 6 ```
</div>
</div>
</div>



<div markdown="1" class="cell code_cell">
<div class="input_area" markdown="1">
```python
def my_last_print(*args,**kwargs):
    return print(*args, **kwargs)


my_last_print(1,2,3,4,5,6)

1 2 3 4 5 6
my_last_print(1,2,3,4,5,6 , sep= " @@@ ", end =" !!!")

1 @@@ 2 @@@ 3 @@@ 4 @@@ 5 @@@ 6 !!!```
</div>
</div>
</div>



<div markdown="1" class="cell code_cell">
<div class="input_area" markdown="1">
```python
a = (1,2,3)

print(a)

(1, 2, 3)
print(*a)

1 2 3
math.pow


    ---------------------------------------------------------------------------

    NameError                                 Traceback (most recent call last)

    <ipython-input-21-f27759496527> in <module>
    ----> 1 math.pow
    

    NameError: name 'math' is not defined


import math

math.pow(2,8)

256.0
a= (2,8)

math.pow(a)


    ---------------------------------------------------------------------------

    TypeError                                 Traceback (most recent call last)

    <ipython-input-25-e9e1104cd3b0> in <module>
    ----> 1 math.pow(a)
    

    TypeError: pow expected 2 arguments, got 1


math.pow(*a)

256.0
b3 = (1,2,3)

math.pow(*b3)


    ---------------------------------------------------------------------------

    TypeError                                 Traceback (most recent call last)

    <ipython-input-28-0c762d1cfea6> in <module>
    ----> 1 math.pow(*b3)
    

    TypeError: pow expected 2 arguments, got 3