Ann's Code Guidebook

The possibilities are infinite.

Pages

  • Home
  • Collaboration
  • Downloads
  • Resources
  • Bibliography

Tuesday, December 18, 2018

Python Templates!

Python3
#!/usr/bin/python3
#
# Python Template
#
def main():
    print ("Hello World!") 

if __name__ == "__main__"
    main()
Python2
#!/usr/bin/python3
#
# Python Template
#
def main():
    print "Hello World!" 

if __name__ == "__main__"
    main()
Posted by Ann at 12:26 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: beginner, python, templates

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2019 (40)
    • ►  March (6)
    • ►  February (28)
    • ►  January (6)
  • ▼  2018 (20)
    • ▼  December (20)
      • Python Homework Solutions #1
      • Python Inputs and outputs.
      • Python Homeworks #1
      • Python Comprehensions!
      • Python Dictionaries!
      • Python os library
      • Python Lists!
      • Python and files.
      • Python date, time and datetime objects.
      • Turning Ideas into Object-oriented design, but why?
      • Python Class
      • Python Loops
      • Python Conditionals
      • Python Templates!
      • Python Variables, Conditionals, Loops, Functions, ...
      • Python literals!
      • Python scripting 101!
      • Meet Python Command Line Intepreter!
      • Python Editor and IDE.
      • Hello World! Who's there?

Disclaimer

Please be aware that Google links sites that may use cookies.

About Me

My photo
Ann
I am a dedicated, experienced and talented engineer with a passion to teach and share what I learned.
View my complete profile
Awesome Inc. theme. Powered by Blogger.