Back-End Programming Exam  >  Back-End Programming Videos  >  Python Tutorial in Hindi  >  Python tutorial in Hindi 50 : Make text file from user input ; cwd ; cd

Python tutorial in Hindi 50 : Make text file from user input ; cwd ; cd Video Lecture | Python Tutorial in Hindi - Back-End Programming

FAQs on Python tutorial in Hindi 50 : Make text file from user input ; cwd ; cd Video Lecture - Python Tutorial in Hindi - Back-End Programming

1. Python में text file कैसे बनाएं जो user input से लिया गया हो?
उत्तर: नीचे दिए गए कोड का उपयोग करके, हम उपयोगकर्ता के द्वारा दिए गए input का उपयोग करके text file बना सकते हैं: ```python user_input = input("कृपया यहां एक लाइन टेक्स्ट दर्ज करें: ") file = open("file.txt", "w") file.write(user_input) file.close() ``` इस कोड के द्वारा, उपयोगकर्ता के द्वारा दिए गए input को "file.txt" नामक text file में लिखा जाएगा।
2. Python में cwd का उपयोग क्या है?
उत्तर: cwd (current working directory) Python में वर्तमान कार्य निर्देशिका को दर्शाने के लिए उपयोग होता है। यह वह निर्देशिका होती है जिसमें Python interpreter के द्वारा वर्तमान में चलाई जा रही Python script स्थित होती है। cwd का उपयोग os module के द्वारा किया जाता है। उदाहरण के लिए, निम्नलिखित कोड का उपयोग करके आप cwd को प्राप्त कर सकते हैं: ```python import os cwd = os.getcwd() print("cwd:", cwd) ``` इस कोड के द्वारा, आपको प्राप्त होने वाला output वर्तमान कार्य निर्देशिका का पूरा पथ होगा।
3. Python में cd का उपयोग कैसे करें?
उत्तर: Python में cd (change directory) का उपयोग करने के लिए, os module का उपयोग किया जाता है। निम्नलिखित कोड स्निपेट का उपयोग करके आप एक निर्दिष्ट निर्देशिका में पहुंच सकते हैं: ```python import os os.chdir("अभिनय/वापसी") ``` इस कोड के द्वारा, आप निर्दिष्ट निर्देशिका में पहुंच जाएंगे।
4. Back-End Programming क्या होता है?
उत्तर: Back-End Programming एक software development की प्रक्रिया है जिसमें सर्वर, डेटाबेस और अन्य नेटवर्क संबंधित तत्वों का विकास किया जाता है। यह प्रक्रिया उपयोगकर्ता के द्वारा देखे जाने वाले front-end तत्वों के पीछे काम करती है और उपयोगकर्ता को इंटरफेस से अपवाद मुक्त सेवाएं प्रदान करती है। Back-End Programming में भाषाएं जैसे कि Python, Java, Ruby, PHP, आदि का उपयोग किया जाता है।
5. Python में बॉले गए अर्थपूर्ण प्रश्न क्या हैं?
उत्तर: अर्थपूर्ण प्रश्न निम्नलिखित हो सकते हैं: - Python में text file कैसे बनाएं जो user input से लिया गया हो? - Python में cwd का उपयोग क्या है? - Python में cd का उपयोग कैसे करें? - Back-End Programming क्या होता है? - Python में Back-End Programming के लिए कौन-कौन सी भाषाएं उपयोग की जाती हैं? इन प्रश्नों के उत्तर ऊपर दिए गए FAQs में दिए गए हैं।
Related Searches

Python tutorial in Hindi 50 : Make text file from user input ; cwd ; cd Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

ppt

,

study material

,

Semester Notes

,

Important questions

,

pdf

,

Objective type Questions

,

Viva Questions

,

Python tutorial in Hindi 50 : Make text file from user input ; cwd ; cd Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

past year papers

,

Sample Paper

,

Exam

,

video lectures

,

MCQs

,

shortcuts and tricks

,

Free

,

Summary

,

Previous Year Questions with Solutions

,

practice quizzes

,

Python tutorial in Hindi 50 : Make text file from user input ; cwd ; cd Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

mock tests for examination

,

Extra Questions

;