Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
What is pythonista?
-
Hello, I am very new to the programming world and my teacher asked us to bring our laptops to classroom to practice in the class. I am using VCC for python to edit and run my small programs and i am unsure that will they work same as the work on desktop in the pythonista app or is it something else? I am really confused any help will be appreciated and if it can run program so can any one post a screen shot of the app responding to this script I have made (THERE CAN BE MANY MISTAKES IN THIS SCRIPT BECAUSE I AM VERY NEW) no insults please :P
import winsound n = input("enter your name: ") a = input("enter your address: ") t = input("enter your contact number: ") if(t !='0' and t !='1' and t !='2' and t !='3' and t !='4' and t !='5' and t !='6' and t !='7' and t !='8' and t !='9'): # print("A phone number can only contain 0-9") winsound.PlaySound('c:\speech.wav',winsound.SND_FILENAME) exit() cm = input ("whats your college major: ") def my_det(): name = n address = a telephone = t college_major = cm print("Your details -->>\n Name:{}\n Address: {}\n Telephone: {}\n College Major: {}".format(name, address, telephone, college_major) ) my_det()
-
You will need to adapt your script a little for the pythonista environment. winsound is obviously a module for doing sound on Windows. Pythonista has a sound module that can play sounds, so you will maybe need to write a little mysound wrapper that provides a common interface if you want the same code to work both places