Path: blob/master/Fonksiyonlar/Videolardaki Notebooklar/Fonksiyonlarda Parametre Türleri.ipynb
765 views
Kernel: Python 3
In [7]:
In [8]:
Out[8]:
Selam Murat
In [9]:
Out[9]:
Selam Serhat
In [10]:
Out[10]:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-10-4ac1fb28ba12> in <module>()
----> 1 selamla()
TypeError: selamla() missing 1 required positional argument: 'isim'
In [11]:
In [12]:
Out[12]:
Selam İsimsiz
In [13]:
Out[13]:
Selam Murat
In [16]:
In [17]:
Out[17]:
Ad: Mustafa Murat Soyad: Coşkun Numara: 12345
In [18]:
In [19]:
Out[19]:
Ad: Bilgi Yok Soyad: Bilgi Yok Numara: Bilgi Yok
In [20]:
Out[20]:
Ad: Mustafa Murat Soyad: Coşkun Numara: Bilgi Yok
In [21]:
Out[21]:
Ad: Bilgi Yok Soyad: Bilgi Yok Numara: 12345
In [22]:
Out[22]:
Mustafa Murat Coşkun
In [23]:
Out[23]:
Mustafa/Murat/Coşkun
In [24]:
Out[24]:
Help on built-in function print in module builtins:
print(...)
print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file: a file-like object (stream); defaults to the current sys.stdout.
sep: string inserted between values, default a space.
end: string appended after the last value, default a newline.
flush: whether to forcibly flush the stream.
In [52]:
In [53]:
Out[53]:
12
In [54]:
Out[54]:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-54-ae6c3d3b8e68> in <module>()
----> 1 toplama(3,4,5,6)
TypeError: toplama() takes 3 positional arguments but 4 were given
In [55]:
In [56]:
Out[56]:
(1, 2, 3)
In [57]:
Out[57]:
(3, 4, 5, 6, 7)
In [58]:
In [60]:
Out[60]:
6
In [61]:
Out[61]:
63
In [62]:
Out[62]:
Murat
In [63]:
Out[63]:
Murat Coşkun
In [64]:
Out[64]:
3 4 5 6 7
In [65]:
Out[65]:
Help on built-in function print in module builtins:
print(...)
print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file: a file-like object (stream); defaults to the current sys.stdout.
sep: string inserted between values, default a space.
end: string appended after the last value, default a newline.
flush: whether to forcibly flush the stream.
In [ ]: