+ 15

Why solo doesn't have turtle import?

Python

16th Dec 2019, 9:25 AM
Adrina Rajabi
Adrina Rajabi - avatar
31 Antworten
+ 14
https://code.sololearn.com/WnQZ0B7qvLjF/?ref=app Adriana#☮️☮️ Here is a code that will help you make turtle codes.
16th Dec 2019, 10:52 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 10
SoloLearn Playground has a different type of Python installed. I tried to pip install turtle using SoloLearn System commands, but it gives object error and its not supported. SoloLearn playground is only capable of running command-line or terminal applications and scripts. It doesn't support turtle as it is not cmd based. The same case happens with tkinter as it is a GUI based module. So the main point is that the SL playground's Python Interpreter doesn't support GUI and graphical scripts and imports
16th Dec 2019, 9:33 AM
Ahnaf
Ahnaf - avatar
+ 7
🌟Prometheus 🇸🇬 U are a real alien !!! How did u memorize this
16th Dec 2019, 2:51 PM
Adrina Rajabi
Adrina Rajabi - avatar
+ 6
Oh But .... That's bad really
16th Dec 2019, 10:01 AM
Adrina Rajabi
Adrina Rajabi - avatar
+ 6
16th Dec 2019, 2:47 PM
Adrina Rajabi
Adrina Rajabi - avatar
+ 6
Thanx all for ur helps and etc
20th Dec 2019, 11:58 AM
Adrina Rajabi
Adrina Rajabi - avatar
+ 5
It's not an app, it's a JS framework called Skulpt. It executes Python code to some extent, but the main area that it stands out is its ability to run turtle. Anyways you're welcome Adriana#☮️☮️
16th Dec 2019, 2:37 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 5
The skulpt framework is implemented in its website, which also happens to be a Python interpreter site.
16th Dec 2019, 2:48 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
Gamma001 Well she is talking about Python, not other languages. Also, Python isn't compiled, it's interpreted
16th Dec 2019, 2:08 PM
Ahnaf
Ahnaf - avatar
+ 4
Tnx all for helping me
16th Dec 2019, 2:26 PM
Adrina Rajabi
Adrina Rajabi - avatar
+ 4
🌟Prometheus 🇸🇬 Wow that a use full app 👍👍 Thnx for sharing that
16th Dec 2019, 2:28 PM
Adrina Rajabi
Adrina Rajabi - avatar
+ 4
Not memorization. Experience.
16th Dec 2019, 2:52 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
K.M Ahnaf Zamil I was referring to all the languages, just to clarify why it doesn't work. And I know that python is interpreter based language. If I keep your point and only refer to python it's like talking about an endangered animal dying out in the wild and not talking about how it's entire species is getting extinct. Bad analogy i know, but still... I didn't have any other
16th Dec 2019, 4:09 PM
RZK 022
RZK 022 - avatar
+ 3
Adriana#☮️☮️ sololearn is just for praciticing simple rules, like if, else, for... everything else should be done on your laptop/desktop or at least a mobile app designed to run python codes.
16th Dec 2019, 10:36 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
Accept for web, you can't use GUI based libraries or modules in other languages. It's because if the compiler that it uses
16th Dec 2019, 1:54 PM
RZK 022
RZK 022 - avatar
+ 3
Ruchika Tripathi don't spam.
17th Dec 2019, 9:57 PM
Sonic
Sonic - avatar
+ 1
Good
18th Dec 2019, 8:21 AM
parisa f
parisa f - avatar
0
Accept for web, you can't use GUI based libraries or modules in other languages. It's because if the compiler that it uses
18th Dec 2019, 9:32 AM
Farhang.Ramezani
Farhang.Ramezani - avatar
0
from math import * print ("Hello sir! welcome to Rabbit calculator...") def options(): print("------------------------------------------------------------------") print("Options: ") print ("------------------------------------------------------------------") print("Enter '+' to add two numbers") print("Enter '-' to subtract two numbers") print("Enter '*' to multiply two numbers") print("Enter '/' to divide two numbers") print("Enter '**' to power two numbers") print("Enter '&' to square root ") print("Enter 'exit' to exit the calculator") print("------------------------------------------------------------------") #divide function def divide(): try: num1, num2 = float(input("Enter first number: ")), float(input("Enter second number: ")) result = num1 / num2 print("The answer: ", result,"\n") except ZeroDivisionError: print ("Error: division by zero is not possible!") divide() finally: x = input ("wanna continue? (y/n) ") if x == "y" or x == "Y": divide() else: exit #Add function def add(): try: num1,num2 = float(input("Enter first number: ")),float(input("Enter second number: ")) result = num1 + num2 print ("The answer: ",result,"\n") except: print ("An error ooccured!") finally: r = input ("wanna continue? (y/n) ") if r == "y" or r == "Y": add() else: exit #Subtract function def subtract(): try: num1, num2 = float(input("Enter first number: ")), float(input("Enter second number: ")) result = num1 - num2 print("The answer: ", result,"\n") except: print ("An error ooccured!") finally: z = input ("wanna continue? (y/n) ") if z == "y" or z == "Y": subtract() else: exit #Multiply function def multiply(): try: num1, num2 = float(i
18th Dec 2019, 9:36 AM
Farhang.Ramezani
Farhang.Ramezani - avatar
0
#divide function def divide(): try: num1, num2 = float(input("Enter first number: ")), float(input("Enter second number: ")) result = num1 / num2 print("The answer: ", result,"\n") except ZeroDivisionError: print ("Error: division by zero is not possible!") divide() finally: x = input ("wanna continue? (y/n) ") if x == "y" or x == "Y": divide() else: exit
18th Dec 2019, 9:37 AM
Farhang.Ramezani
Farhang.Ramezani - avatar