Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Hardest hello world program of Python lol
Shrikant Dhayje
Shrikant Dhayje

Posted on • Edited on • Originally published atcodewithshriekdj.netlify.app

     

Hardest hello world program of Python lol

So This is just for fun.

Most People said to me because I Started Using Python Mostly in my projects.

And They Tell Me That Python is not aReal programming language or Python is For Kids because it is too easy to write.

So for just fun.

I created a repo with various ways of writing Hello World Program In Python.

For Starters It Started Like this.

Program for Beginners

print('Hello World!')
Enter fullscreen modeExit fullscreen mode

Difficulty Level 0 : Program With Shebang

#!/usr/bin/env python3print('Hello World!')
Enter fullscreen modeExit fullscreen mode

Difficulty Level 1 : Program With variable

#!/usr/bin/env python3message='Hello World!'print(message)
Enter fullscreen modeExit fullscreen mode

Difficulty Level 2 : Program With Main Condition

#!/usr/bin/env python3message='Hello World!'if__name__=='__main__':print(message)
Enter fullscreen modeExit fullscreen mode

Difficulty Level 3 : Program With external function.

#!/usr/bin/env python3msg="Hello World!"defdisplay_msg(message):print(message)if__name__=='__main__':display_msg(message)
Enter fullscreen modeExit fullscreen mode

Difficulty Level 4 : Program With.env file and running process

#!/usr/bin/env python3importosfromdotenvimportload_dotenvload_dotenv()# take environment variables from .env filemsg=os.getenv('MESSAGE')defdisplay_msg(message):print(message)if__name__=='__main__':display_msg(msg)
Enter fullscreen modeExit fullscreen mode

running proces athttps://github.com/shriekdj/hello-world-py/tree/main/hello_by_legends/legend_hello_4

Repo Is At

It Will Become more difficult by time just wait for it.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I'm a software developer from India. :india:I live in Shrirampur City, Maharastra :india:I'm currently learning Back-end Web Developing via Python Programming Language.
  • Location
    Shrirampur City, Maharashtra State, India
  • Education
    BCA Graduate at CD Jain College, Shrirampur Affiliated to S. P. Pune University, Maharashtra, India
  • Work
    Full Stack Web Dev at Indiacom (Tellme Digiinfotech), Pune, India
  • Joined

More fromShrikant Dhayje

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp