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 -
1:09:26
Glenn Greenwald
4 hours agoTrump's Shifting Immigration and H-1B Policies: With Journalist Lee Fang and Political Science Professor Ron Hira | SYSTEM UPDATE #515
112K8 -
LIVE
LFA TV
22 hours agoLFA TV ALL DAY STREAM - MONDAY 9/15/25
910 watching -
54:12
Donald Trump Jr.
2 hours agoCharlie's Vision. Our Future. | TRIGGERED Ep274
143K97 -
1:03:35
BonginoReport
4 hours agoKirk’s Alleged Killer Dating Hateful Transgender??? - Nightly Scroll w/ Hayley Caronia (Ep.134)
80.4K94 -
1:01:12
The Nick DiPaolo Show Channel
5 hours agoKirk Assassination Exposes Insane Left | The Nick Di Paolo Show #1793
50.7K19 -
1:48:38
The Mike Schwartz Show
4 hours agoTHE MIKE SCHWARTZ SHOW Evening Edition 09-15-2025
24.1K10 -
LIVE
LIVE WITH CHRIS'WORLD
5 hours agoLIVE WITH CHRIS'WORLD - They Just Created 1 Million Charlie Kirks
114 watching -
LIVE
Quite Frankly
7 hours agoStaggering Evil, Official Stories & Open Lines | Rich Baris 9/15/25
698 watching -
1:09:33
TheCrucible
5 hours agoThe Extravaganza! EP: 36 (9/15/25)
166K18