a question | SoloLearn: Learn to code for FREE!

-1

a question

import __hello__ is it error

5/15/2020 6:33:30 AM

3A09 CHOW WUN FUNG

23 Answers

New Answer

+4

It is not an error. It's an easter egg of the language. If you run the code you created 20 minutes ago you'll see the correct output without any error. 3A09 CHOW WUN FUNG Hidden features in Programs and Games are usually called easter eggs. https://www.sololearn.com/post/307088/?ref=app Please use this section for relevant programming related questions only. If you have more (unrelated) doubts to ask you should open a new question. Don't ask for assignments solutions without providing your minimal attempt or clarifying what exactly you don't understand.

+2

3A09 CHOW WUN FUNG No , if you have create a module named __hello__ https://docs.python.org/3/tutorial/modules.html or you can run it directly without making it file ,output will be 👇👇👇 Hello world!

+2

It doesn't output error rather it outputs Hello World! Go through this https://www.sololearn.com/learn/476/?ref=app

+1

3A09 CHOW WUN FUNG To create a module just save the code you want in a file with the file extension .py: Example Save this code in a file named mymodule.py def greeting(name):   print("Hello, " + name) Use a Module Now we can use the module we just created, by using the import statement: Example Import the module named mymodule, and call the greeting function: import mymodule mymodule.greeting("Jonathan") Hope it helped

+1

3A09 CHOW WUN FUNG Kevin Star your import__hello__ will not give you error It will return you Hello world! the reason behind this is __hello__ is a frozen module intended as a test case for frozen module support. It's source code is automatically generated by the Python freeze utility. Hope you got it

+1

3A09 CHOW WUN FUNG bcoz you have not made the module named __bye__ Follow the steps, I have given above to create a module

+1

3A09 CHOW WUN FUNG To create a module just save the code you want in a file with the file extension .py: Example Save this code in a file named mymodule.py def greeting(name):   print("Hello, " + name) Use a Module Now we can use the module we just created, by using the import statement: Example Import the module named mymodule, and call the greeting function: import mymodule mymodule.greeting("Jonathan") Hope it helped

0

0

so how to create a name

0

can you answer me other question

0

0

One of the first users of BIT’s new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of those numbers. “This supercomputer is great,” remarked Chip. “I only wish Timothy were here to see these results.” (Chip moved to a new apartment, once one became available on the third floor of the Lemon Sky apartments on Third Street.) Input The input will consist of at most 100 lines of text, each of which contains a single VeryLongInte- ger. Each VeryLongInteger will be 100 or fewer characters in length, and will only contain digits (no VeryLongInteger will be negative). The final input line will contain a single zero on a line by itself. Output Your program should output the sum of the VeryLongIntegers given in the input. Sample Input

0

0

why,can i make import __bye__

0

0

why it is still error https://code.sololearn.com/cD7scFwehY1J/?ref=app

0

how to create a module

0

https://code.sololearn.com/cqn6sbzzQcoX/?ref=app

0

0