This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) seslileri yıldız ile değiştir, sayıları yıldızla değiştir, seslileri sil, seslileri say | |
> "bu ruby eglenceli".gsub(/[aeiou]/, '*') | |
=> "b* r*by *gl*nc*l*" | |
> "bu1 r0u4by eg7enc5el3i".gsub(/[0-9]/, '*') | |
=> "bu* r*u*by eg*enc*el*i" | |
##Fonksiyon sesli harfleri kontrol etme | |
def sesli_mi?(string) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fib(n): | |
dizi = [] | |
a,b = 1,1 | |
for j in range(n-1): | |
dizi.append(a) | |
a,b = b,a+b | |
return dizi | |
## Decmal to Fibonacci Sequence | |
def dec2fib(decimal): |