Computer Science, asked by nareshnbjk2400, 8 months ago

How can you make a module ‘helloworld’ out of these two functions?
def hello():
print ‘Hello,’,

Answers

Answered by Anonymous
0

That is, the first argument to the controller function on the module is the name of ... move the “hello world” message from the HTML to the controller, Once you know why you get certain types of errors, they become much easier to fix ... Actually, the function above has two issues with syntax. ... in < module>() ----> 1 print hello NameError: name 'hello' is not ...Onto the most flexible variable in PHP, the string variable. You might notice how I keep referring to strings as variables. However, strings are much more like objects with methods and properties. Only the string object's properties is what you might think of as the string.

Answered by topwriters
0

Print command

Explanation:

Python is a simple language. It has very straightforward syntax. I find that the above print command has a syntax error. Because a print command in Python should enclose the text to be printed within parenthesis and quotes. Here it is enclosed just in quotes. So in order to print helloworld, the following print command should be used.

def hello():

print ("helloworld")

Similar questions