मुफ़्त · डेवलपमेंट
ऑनलाइन Python कंपाइलर.
बिना इंस्टॉल या अकाउंट के अपने ब्राउज़र में Python 3 कोड लिखें और चलाएँ: आउटपुट, त्रुटियाँ, input() के मान, उदाहरण, .py डाउनलोड और शेयर लिंक।
Program input (stdin): one line per input() call
Press Run to see the output here.Python 3.14 by Pyodide (MPL-2.0) in WebAssembly. Standard library only (math, json, re, datetime, collections, dataclasses…); packages such as numpy and network access are not available. Stop restarts Python, which clears variables.
अपने ब्राउज़र में Python कोड चलाएँ
- main.py में अपना कोड लिखें या पेस्ट करें, या
Exampleसे कोई प्रोग्राम चुनें। - अगर आपका प्रोग्राम input() बुलाता है, तो
Program input (stdin)खोलें और हर पंक्ति में एक मान लिखें। Run (Ctrl+Enter)दबाएँ। आउटपुट नीचे दिखता है; त्रुटियाँ main.py की विफल पंक्ति के साथ लाल रंग में दिखती हैं।- बहुत देर चलने वाले प्रोग्राम को रोकने के लिए
Stopदबाएँ, फिर कोड रखने के लिएDownload .pyयाCopy share link।
पहली बार चलाने पर Python (लगभग 12 MB) एक बार डाउनलोड होता है; उसके बाद ब्राउज़र उसे कैश में रखता है। आपका कोड इसी ब्राउज़र में सेव रहता है, इसलिए लौटने पर भी मिल जाता है।
क्या चलता है और क्या नहीं
यह CPython 3.14 अपनी स्टैंडर्ड लाइब्रेरी के साथ है: math, random, re, json, csv, datetime, collections, itertools, dataclasses, decimal, fractions, statistics और भी बहुत कुछ। numpy, pandas या requests जैसे पैकेज उपलब्ध नहीं हैं, नेटवर्क एक्सेस और ग्राफ़िकल विंडो भी नहीं है, इसलिए turtle और tkinter वाले प्रोग्राम नहीं दिख सकते।
Stop से Python दोबारा शुरू होता है, जिससे पिछली बार के वेरिएबल मिट जाते हैं। रेगुलर एक्सप्रेशन जाँचने के लिए रेगेक्स टेस्टर और SQL से डेटा देखने के लिए CSV और JSON फ़ाइलों पर SQL क्वेरी आज़माएँ।
सीमाएं और समर्थित फ़ॉर्मैट
आपका डेटा आपके उपकरण पर संसाधित होता है।
अंग्रेज़ी में तकनीकी जानकारी
Python 3.14 standard library only: packages such as numpy or pandas, network access and graphical windows are not available. The first run downloads about 12 MB, then the browser caches it.
Runs CPython 3.14 compiled to WebAssembly by Pyodide (MPL-2.0) in a background worker on your device; your code and its input never leave the browser. Share links store the code inside the link.
The Fibonacci example prints the first 15 numbers and fib(300); the Hello example reads a name from Program input and greets it.
अक्सर पूछे जाने वाले प्रश्न
क्या मेरा कोड किसी सर्वर पर भेजा जाता है?
नहीं। Python आपके ब्राउज़र के बैकग्राउंड वर्कर में WebAssembly के रूप में चलता है। शेयर लिंक कोड को लिंक के अंदर ही रखता है।
input() मेरे टाइप करने का इंतज़ार क्यों नहीं करता?
प्रोग्राम बैकग्राउंड में चलता है, इसलिए वह Program input में लिखी पंक्तियाँ पढ़ता है, हर input() के लिए एक। पंक्तियाँ खत्म होने पर input() EOFError देता है।
क्या मैं pip से पैकेज इंस्टॉल कर सकता हूँ?
नहीं। सिर्फ़ स्टैंडर्ड लाइब्रेरी शामिल है, इसलिए यह टूल कभी दूसरे सर्वर से कोड डाउनलोड नहीं करता।