Getting started guide to Python

2019-08-08 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)A quick noteIf you have py launcher installed and are planning to run multiple Python versions, do not add python to environment variables. Py launcher provides a quick and a convenient way of launching python by typing py into your command line. Thanks to NicklasMCHD for this tip, I didn't know thatRunning scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print("hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print("hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file s

Getting started guide to Python

2019-08-08 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)A quick noteIf you have py launcher installed and are planning to run multiple Python versions, do not add python to environment variables. Py launcher provides a quick and a convenient way of launching python by typing py into your command line. Thanks to NicklasMCHD for this tip, I didn't know thatRunning scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print("hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print("hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file s

Getting started guide to Python

2019-08-08 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)A quick noteIf you have py launcher installed and are planning to run multiple Python versions, do not add python to environment variables. Py launcher provides a quick and a convenient way of launching python by typing py into your command line. Thanks to NicklasMCHD for this tip, I didn't know thatRunning scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print("hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print("hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file s

Getting started guide to Python

2019-08-08 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)A quick noteIf you have py launcher installed and are planning to run multiple Python versions, do not add python to environment variables. Py launcher provides a quick and a convenient way of launching python by typing py into your command line. Thanks to NicklasMCHD for this tip, I didn't know thatRunning scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print("hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print("hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file s

Getting started guide to Python

2019-08-08 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.A quick noteIf you have py launcher installed and are planning to run multiple Python versions, do not add python to environment variables. Py launcher provides a quick and a convenient way of launching python by typing py into your command line. Thanks to NicklasMCHD for this tip, I didn't know that.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)Running scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print("hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print("hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file s

Getting started guide to Python

2019-08-04 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)Running scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print("hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print("hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file scriptsSometimes, your interpreter will just exit. No announcements of tracebacks, no weird output, no nothing. This is do to some error in your code that does not fall under the syntactical category. To this day, here are two solutions that I use on the regular basesEasy to learn, annoying to acces

Getting started guide to Python

2019-08-04 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)Running scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print("hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print(,hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file scriptsSometimes, your interpreter will just exit. No announcements of tracebacks, no weird output, no nothing. This is do to some error in your code that does not fall under the syntactical category. To this day, here are two solutions that I use on the regular basesEasy to learn, annoying to accessIf y

Getting started guide to Python

2019-08-04 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)Running scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print("hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print(,hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file scriptsSometimes, your interpreter will just exit. No announcements of tracebacks, no weird output, no nothing. This is do to some error in your code that does not fall under the syntactical category. To this day, here are two solutions that I use on the regular basesEasy to learn, annoying to accessIf y

Getting started guide to Python

2019-08-04 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)Running scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print(,hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print(,hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file scriptsSometimes, your interpreter will just exit. No announcements of tracebacks, no weird output, no nothing. This is do to some error in your code that does not fall under the syntactical category. To this day, here are two solutions that I use on the regular basesEasy to learn, annoying to accessIf your p

Getting started guide to Python

2019-08-04 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)Running scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print(,hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print(,hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file scriptsSometimes, your interpreter will just exit. No announcements of tracebacks, no weird output, no nothing. This is do to some error in your code that does not fall under the syntactical category. To this day, here are two solutions that I use on the regular basesEasy to learn, annoying to accessIf your p

Getting started guide to Python

2019-08-04 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)Running scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print(,hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print(,hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file scriptsSometimes, your interpreter will just exit. No announcements of tracebacks, no weird output, no nothing. This is do to some error in your code that does not fall under the syntactical category. To this day, here are two solutions that I use on the regular basesEasy to learn, annoying to accessIf your p

Getting started guide to Python

2019-08-04 Thread AudioGames . net Forum — Articles Room : amerikranian via Audiogames-reflector


  


Getting started guide to Python

Attention!Some of the commands mentioned here are NVDA-specific. If you would like other screen readers to be included, please send me the list of the navigation key commands and I will update the guide to include the informationIntroductionAs the community began shifting to Python, the same questions got introduced over and over again. How do I run scripts? How do I see errors? Where do I get Python? This guide will aim to introduce the basics of setting up Python and will hopefully go on to some more advanced concepts such as windows, sounds, and speech.Getting pythonPython can be downloaded by going to python.org and browsing to the "download" heading. Do to the constantly updating nature of the language, no link will be provided as it will probably change. The first link under the download heading should take you to the latest version page. From there it is as simple as choosing what platform you use and downloading the installer.InstallationNoteYou don't have to do everything I do, but some of these settings should save you some headache.A second noteIf I did not mention a setting in the installer, it remains at it's default valueActual installation instructionsFirst, do not click on "install now" option. Choose custom installation instead.I like to change my installation directory to something more obvious just in case I want to mess with the python folder, though it ultimately doesn't matter as long as it does not end up in program files on a 64-bit machine (I have been told and have experienced file writing errors because the app didn't have the permission to do so).Click next, and you should have some more options.I do not install the Idol, primarily because it appeared not to be accessible when I tried to use it. I do add python to my environment variables to save me some typing, and I do check the box for both associating .py with python and precompiling the standard library, though I am not too sure what the second one does. I have tried using python with and without debugging symbols and could not really tell the difference, so that box is left unchecked, at least on my machine.You should be good to install python now. After the installation completes, do not delete the installer. If by some chance you screw up your interpreter you can run it and click on the repair option (Saves you from reinstalling everything.)Running scriptsThere are two ways to run Python code. The most easiest way is to hit windows R to get into your run dialog and then type in python.NoteIf you are on windows 10 and typing python in the run dialog brings you to the Microsoft store, you must run the command from the command line. Read on how to do so.Opening Python via Command Line (CMD for short)To get into your command line, hit windows R and in the run dialog type cmd. This should bring you to the terminal where you can type in commands. Now type python.What you should see as the result of either stepIf everything worked correctly, a window should pop up with 3 greater than signs which signify that python is ready to receive input. Type this into your console:print(,hello World!")If you do not hear the message "hello world", make sure that your reporting of dynamic content changes are on by hitting NVDA+5 and run the command again.When you are ready to quit, typing exit() or quit() should close the console.Running scripts from filesThe console is great for quick and dirty tests, but what if you need to have multiple files in your project? This is a little trickier to do.Create a blank document.Type in print(,hello World!")Save your document as hello.pyOpen up your command lineGo into the directory where you have saved your file.If you do not know how to use CMD, cd directory_name takes you to that directory, such as cd desktop, and cd .. takes you back to the previous directory in relation to where you currently are.For example, the main python folder comes with a folder called lib inside it. If I was in the lib folder and I typed in cd .., I would now be back in the python directory.A quick tip: If you don't know how to spell something, hitting tab will move you through files and folders within your current directory. After that it is as simple as it is going to be to hit home and type in the desired command before the file name.Type in python hello.pyIf everything works as expected, great! You now are mostly ready to proceed with Python tutorials. If you do not get any output, make sure that reporting dynamic content changes option is  on by hitting NVDA+5 and repeat the command.Last note for file scriptsSometimes, your interpreter will just exit. No announcements of tracebacks, no weird output, no nothing. This is do to some error in your code that does not fall under the syntactical category. To this day, here are two solutions that I use on the regular basesEasy to learn, annoying to accessIf your p