Python For Beginners: Learn From Scratch With a Fast Method and Practice With Simple Exercises; Create Your First Programming Project in 15 Minutes by Brian Dayton

Python For Beginners: Learn From Scratch With a Fast Method and Practice With Simple Exercises; Create Your First Programming Project in 15 Minutes by Brian Dayton

Author:Brian Dayton [Dayton, Brian]
Language: eng
Format: epub
Published: 2020-03-23T18:30:00+00:00


def sayHelloWorld(yourname):

print (“Hello World says ” + yourname)

sayHelloWorld(“Ashley”)

say HelloWorld(“Justin”)

Here, we pass a string called yourname to the function, and it will print out “Hello World says Ashley” etc..

Numerical Data and Return Values

Now let’s consider passing numerical information. This will show something important about Python. What happens inside a function stays inside the function. So you’ll have to use the return keyword to get a value out.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.