Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Word replace with string
Post: Word replace with string

Hi, I would like to replace a word with a variable in a html file. My code is: name = raw_input("Name: ") s = open("helloworld.html").read() s = s.replace('YourNameHere', name) f = open("helloworld.h...
dabozz General Coding Help 1 2,111 Feb-13-2019, 01:29 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020