# Create a Local File Using .write() method

inner_planets = open('inner_planets.txt', 'w')
inner_planets.write("Mercury\nVenus\nEarth\nMars")
inner_planets.close()

inner_planets = open('inner_planets.txt', 'r')
print(inner_planets.read())
inner_planets.close()

8d03a0f5ed1d30eaf9aec5a8f2df2e51200c35c3
<mask token>

<mask token>
inner_planets.write("""Mercury
Venus
Earth
Mars""")
inner_planets.close()
<mask token>
print(inner_planets.read())
inner_planets.close()

inner_planets = open('inner_planets.txt', 'w')
inner_planets.write("""Mercury
Venus
Earth
Mars""")
inner_planets.close()
inner_planets = open('inner_planets.txt', 'r')
print(inner_planets.read())
inner_planets.close()

# Create a Local File Using .write() method

inner_planets = open('inner_planets.txt', 'w')
inner_planets.write("Mercury\nVenus\nEarth\nMars")
inner_planets.close()

inner_planets = open('inner_planets.txt', 'r')
print(inner_planets.read())
inner_planets.close()
