Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #-*-coding:utf-8-*-
- a=1
- while a==1:
- turkce_harfler="ışğçüöİŞĞÇÜÖ"
- denetleme_dizelgesi=[]
- dosya=raw_input("Dosya için bir ad seçin: ")
- for hrf in dosya:
- if hrf in turkce_harfler:
- denetleme_dizelgesi.append(hrf)
- if denetleme_dizelgesi:
- print "Dosya adında Türkçe harf olmamalı!"
- a=1
- elif len(dosya)>8:
- print "Dosya adı en fazla 8 karakter içerebilir!"
- a=1
- else:
- print 'Dosya "%s" adıyla kaydedildi!'%dosya
- quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement