Question: I am a beginner with Python. I created a HTML blog just fine and am now ask to add an 'addPost' script (Jython). Here is

I am a beginner with Python.

I created a HTML blog just fine and am now ask to add an 'addPost' script (Jython).

Here is an image of my bottleneck...

I am a beginner with Python. I created a HTML blog just

4 def addPost( ) : 5 postTitle = raw input ("Title for this post: ") postDesc = raw input ( "Description for this post: ") postFile = raw input ("Filename: " ) file = open ("c: \\inetpub\\wwwroot\\iisstart. html","a") 9 file. write("""Title: """+postTitle+""""mm) 10 file. write("""

Description: """+postDesc+"""

"mm) 11 file. write(""""""+postFile+""""wj 12 file. close () 10 addPost ( ) Load Program >> file = open(c:inetpubwwwroot isstart.htm","a Invalid syntax. Your code contains at least one syntax error, meaning it is not legal Jython. >>> file = open(c:\\inetpub\\wwwrootuisstart.html","a") The error was: 'clinetpub\\wwwrootulisstart.html' I/O operation failed. I tried to read a file, and couldn't. Are you sure that file exists? If it does exist, did you specify the correct directory/folder?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!