Header Ads Widget

riti-advertiesment

Python Input function ? O Level Chap-2 String Input from console and Simple Program in Python?

Python Input function



String Chapter-2 String Input from console and Simple Program in Python?

The input() function allows user input.

Syntax

input(prompt)

Parameter Values

ParameterDescription
promptA String, representing a default message before the input.

Example 1

x = input('Enter your name:')
print('Hello, ' + x)

Example 2

'Python Input Function'

print("Enter Python=")

x=input("Enter Your Name=")

print ("Your Result=",x)

Python Compiler

हेलो दोस्तों इस पोस्ट में मैंने पाइथन का इनपुट फंक्शन के बारे में बताने का प्रयास किया है इसमें मैंने आपको दो एग्जांपल दिया है दौरा एग्जांपल को आप प्रेक्टिकल करके जरूर देखें और अगर कोई भी आपको कन्फ्यूजन होती है तो आप कमेंट जरूर छोड़ें पोस्ट कैसा लगा यह भी आप कमेंट में जरूर डालें फिर मिलेंगे नेक्स्ट पोस्ट

Web Designing Course