Premium Only Content
This video is only available to Rumble Premium subscribers. Subscribe to
enjoy exclusive content and ad-free viewing.

Opening and Writing Text to a Text File |Section 5|Celestial Warrior
2 years ago
1
Please write some code thatcreates a text file and writesthe items oflist numbers = [1, 2, 3]to that text file.
The text file content should look like following:
1
2
3
Note that the write() method takes only string datatypes so you may need to convert integers to strings in order to be able to write them in a file.
numbers = [1, 2, 3]
file = open("numbers.txt", "w")
for i in numbers:
file.write(str(i) + "\n")
file.close()
Loading comments...
-
17:53
foyo Games
2 years agoShadow Era | Shadow Warrior Opening
4 -
LIVE
LFA TV
4 hours agoLFA TV ALL DAY STREAM - FRIDAY 9/5/25
3,657 watching -
LIVE
Benny Johnson
1 hour agoBiden Appears With MASSIVE Scar on Face, New Health Horror Revealed! Sobbing Jimmy Kimmel FLEEING US
4,495 watching -
LIVE
The Big Migâ„¢
3 hours agoBig Pharma's Puppets: RFK Jr. Takes on Congress
8,101 watching -
LIVE
Total Horse Channel
11 hours ago2025 Reno Snaffle Bit Futurity | Friday
19 watching -
26:40
Rethinking the Dollar
1 hour agoPeter Schiff: "Trump's Economy WORSE Than Biden" | Morning Check-In: Let's Talk...
153 -
LIVE
Badlands Media
7 hours agoBadlands Daily: September 5, 2025
4,143 watching -
24:00
Bearing
3 hours agoThe Week LIBERALS Thought TRUMP DIED 💥 (And Went INSANE) 🤣
11.1K11 -
LIVE
GritsGG
1 hour agoWin Streaking!! 🫡!
36 watching -
1:41:36
Dear America
2 hours agoWelcome To The Dept Of WAR! RFK DESTROYS The CDC! + Should Trans Own Guns?!
71.1K51