Untitled

 avatar
unknown
python
2 years ago
510 B
4
Indexable
s="PyThon#3.10@gmAil.com" fp1=open("lower.txt","w")
fp2=open("UPPER.txt", "w") fp3=open("other.txt", "w")
for 1 in s:
if i.islower():
fp1.write(1)
elif iisupper():
fp2.write(i)
else:
fp3.write(i)
fpl.close()
fp2.close() fp3.close() fp1=open("lower.txt","r")
fp2=open("UPPER.txt","'r"')
fp3=open("other.txt", "s")
sl=fp1.read( )
print("Contents of lower.txt are:",s1)
$2=fp2.read()
print("Contents of lower.txt are:",$2)
s3=fp3.read( )
print("Contents of lower. txt are:",$3)
fpl.close()
fp2.close() fp3.close()
Editor is loading...