tür kontrolü 2
This commit is contained in:
parent
04685c88b0
commit
60422edd8d
9
python-temel/tur.kontrolu.2.py
Normal file
9
python-temel/tur.kontrolu.2.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
def disp_banner(s, ch = '-'):
|
||||
if isinstance(s, int):
|
||||
s = str(s)
|
||||
print(ch * len(s))
|
||||
print(s)
|
||||
print(ch * len(s))
|
||||
|
||||
disp_banner('ankara')
|
||||
disp_banner(120)
|
Loading…
Reference in New Issue
Block a user