Hello world

 Python print() function

To Display the content onto the screen we make use of print() function.


Program

>>> print("Hello world")
Hello world
>>>


Python input() function

To take the input from the user we make use of Python input() function. At this situation the program will not go ahead until we provide certain input.

Program

>>> input()


Program

>>> input("Enter a value: ")
Enter a value: 





Conclusion

We have learned, how we can display the things onto the screen. And taking input from the user. 





Previous                          Next

If you have any query, feel free to ask.

إرسال تعليق

If you have any query, feel free to ask.

Post a Comment (0)