f.write example 3
This commit is contained in:
parent
cf4ee209dd
commit
fe74cd0c74
6
python-temel/f.write.3.py
Normal file
6
python-temel/f.write.3.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
with open('test.txt', 'w') as f:
|
||||||
|
while True:
|
||||||
|
s = input('Bir yazı giriniz:')
|
||||||
|
if s == 'çık':
|
||||||
|
break
|
||||||
|
f.write(s + '\n')
|
|
@ -1,10 +1,2 @@
|
||||||
Number: 0
|
mert
|
||||||
Number: 1
|
gör
|
||||||
Number: 2
|
|
||||||
Number: 3
|
|
||||||
Number: 4
|
|
||||||
Number: 5
|
|
||||||
Number: 6
|
|
||||||
Number: 7
|
|
||||||
Number: 8
|
|
||||||
Number: 9
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user