top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Sep 22
  • 1 min read

import glob, os

with open("a.txt", "w") as f:

f.write("A")

with open("b.txt", "w") as f:

f.write("B")

print(len(glob.glob("*.txt")))

os.remove("a.txt")

os.remove("b.txt")


[Running] python3 -u "/Users/name/test/test769.py"

4

[Done] exited with code=0 in 0.081 seconds

Try to run it.
Try to run it.

 
 
 

Comments

Couldn’t Load Comments
It looks like there was a technical problem. Try reconnecting or refreshing the page.
bottom of page