63
100
To check that Python is installed, open a command line (typically by running the "Terminal" program), and cd to the google-python-exercises directory. Try the following to run the hello.py program (what you type is shown in bold): ~/google-python-exercises$ python3 hello.py Hello World ~/google-python-exercises$ python3 hello.py Alice Hello Alice
  • Safe
  • United States
  • Encrypted
  • 27 yrs old
  • 1 Site Rank
  • Report Card

63
100
Prelude. Welcome to Google's Python online tutorial. It is based on the introductory Python course offered internally. As mentioned on the setup page, this material covers Python 3.. If you're seeking a companion MOOC course, try the ones from Udacity and Coursera (intro to programming [beginners] or intro to Python).Finally, if you're seeking self-paced online learning without watching videos ...
  • Safe
  • United States
  • Encrypted
  • 27 yrs old
  • 1 Site Rank
  • Report Card

63
100
Python has a built-in string class named "str" with many handy features (there is an older module named "string" which you should not use). String literals can be enclosed by either double or single quotes, although single quotes are more commonly used. ... A google search for "python str" should lead you to the official python.org string ...
  • Safe
  • United States
  • Encrypted
  • 27 yrs old
  • 1 Site Rank
  • Report Card

63
100
Python has a great built-in list type named "list". List literals are written within square brackets [ ]. Lists work similarly to strings -- use the len() function and square brackets [ ] to access data, with the first element at index 0. (See the official python.org list docs.)
  • Safe
  • United States
  • Encrypted
  • 27 yrs old
  • 1 Site Rank
  • Report Card

63
100
A function that needs to return multiple values can just return a tuple of the values. For example, if I wanted to have a list of 3-d coordinates, the natural python representation would be a list of tuples, where each tuple is size 3 holding one (x, y, z) group. To create a tuple, just list the values within parenthesis separated by commas.
  • Safe
  • United States
  • Encrypted
  • 27 yrs old
  • 1 Site Rank
  • Report Card

63
100
The "del" operator does deletions. In the simplest case, it can remove the definition of a variable, as if that variable had not been defined. Del can also be used on list elements or slices to delete that part of the list and to delete entries from a dictionary. var = 6 del var # var no more!
  • Safe
  • United States
  • Encrypted
  • 27 yrs old
  • 1 Site Rank
  • Report Card

77
100
I'm a complete noob at programming, starting out trying to learn Python. I've understood the tutorials I've read so far but on Google's tutorial it says to open a .py file called hello.py. It is in a file that they ask you to download for the class. I'm running Python 2.6 on a new imac.
  • Safe
  • United States
  • Encrypted
  • 19 yrs old
  • 28 Site Rank
  • Report Card

77
100
We began developing Positron as part of our mission to support open-source data science in multiple languages, including R and Python. If you're currently using RStudio and are happy with the experience, you can continue to enjoy RStudio. RStudio includes 10+ years of applied optimizations for R data analysis and package development.
  • Safe
  • United States
  • Encrypted
  • 19 yrs old
  • 28 Site Rank
  • Report Card

77
100
I was going through Google's Python Class and found this nice practice website made by the instructor. I'm sure some know of it, but it seems like a good place to practice for beginners to Java and Python!
  • Safe
  • United States
  • Encrypted
  • 19 yrs old
  • 28 Site Rank
  • Report Card

See more