f.write example 3

This commit is contained in:
Mert Gör 🇹🇷 2023-08-24 11:56:46 +03:00
parent cf4ee209dd
commit fe74cd0c74
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
2 changed files with 8 additions and 10 deletions

View 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')

View File

@ -1,10 +1,2 @@
Number: 0
Number: 1
Number: 2
Number: 3
Number: 4
Number: 5
Number: 6
Number: 7
Number: 8
Number: 9
mert
gör