简体   繁体   中英

Are there any online Python IDE's that have the built-in modules available?

There are bunch of online Python editors that I have found, but none of them have any modules available. Are there any IDE's available online that have simple modules such as math and random built in?

Well i didn't tested any variety of online python interpreters, but a quick experiment yields this Website . It can run your basic and even some advance built-in modules

Test code is following

# Online Python compiler (interpreter) to run Python online.
# Write Python 3 code in this online editor and run it.
import random

#testing a random built-in module
marks = {
    "English": random.randint(1, 100),
    "Bio": random.randint(1, 100),
    "Botany": random.randint(1, 100),
    "Literature": random.randint(1, 100),
}

for mark in marks.keys():
    print("You got ", marks[mark] , " marks in ", mark)

#testing the built-in sum function
total = sum([marks[subject] for subject in marks.keys()])
print("Total Marks", total)

and the output is following

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM