1.    26 Oct 2015 #1
    Join Date : Jan 2014
    Oak Ridge TN, USA
    Posts : 24,523
    Windows 10 Pro x64

    Programming for Everybody (Getting Started with Python) - Class..


    The class begins tomorrow and if anyone wants they can still sign up for the free version.
    https://www.coursera.org/learn/python/

    I've started the class and I hope to post information from it and tips to help anyone who's interested.
    Note: You don't have to install any software to take this class. All of the coding can be done in this environment/web site: CodeSkulptor

    It's not hard to use and it makes use of Python version 2.7.

    You can install Python on your own PC: Download Python | Python.org
    I highly recommend using 2.7.10.

    Hope to see some of you there.
    Jeff..
      My ComputerSystem Spec
  2.    26 Oct 2015 #2
    Join Date : Jan 2014
    Oak Ridge TN, USA
    Posts : 24,523
    Windows 10 Pro x64
    Thread Starter

    PGM1: Hello World..
    Code:
    #Print Hello World.. -- this is a comment and is ignored when Python runs the code..
    #comments are used to document your code..
    print "Hello, World."
      My ComputerSystem Spec
  3.    26 Oct 2015 #3
    Join Date : Jul 2015
    California
    Posts : 203
    Kernel 4.x.x

    Code:
    #include <iostream>
    using std::cout;
    
    int main()
    {
       cout << "Hello World!\n";
       return 0;
    }
    C++ isn't very difficult once you learn the concepts involved in programming. I suggest after you get the hang of python, you give C/C++ a try. It's awesome!
      My ComputersSystem Spec
  4.    26 Oct 2015 #4
    Join Date : Jan 2014
    Oak Ridge TN, USA
    Posts : 24,523
    Windows 10 Pro x64
    Thread Starter

    Quote Originally Posted by Hydranix View Post
    Code:
    #include <iostream>
    using std::cout;
    
    int main()
    {
       cout << "Hello World!\n";
       return 0;
    }
    C++ isn't very difficult once you learn the concepts involved in programming. I suggest after you get the hang of python, you give C/C++ a try. It's awesome!

    I've tried it out and C++ is a good language.
      My ComputerSystem Spec
  5.    27 Oct 2015 #5
    Join Date : Jan 2014
    Oak Ridge TN, USA
    Posts : 24,523
    Windows 10 Pro x64
    Thread Starter

    Class starts today!!
    Oh and here's a real nice editor that is useful not only for the class but as a general editor:
    Atom I'm using it and I really like it so far.

    Jeff
      My ComputerSystem Spec
  6.    27 Oct 2015 #6
    Join Date : Jan 2014
    Oak Ridge TN, USA
    Posts : 24,523
    Windows 10 Pro x64
    Thread Starter

    Here's a nice script that is an expansion on the "Hello World" program. It is a bit more advanced but it demonstrates what you can do with a file in Python. Oh and it's version 2.7.10 of Python.
    Code:
    PHP Code:
    #---------------------------------------------
    # PGM:    hello1.py
    # By:     Jeff F.. Citizen Z!!
    # Hello  script.. file usage ..
    #---------------------------------------------
    handle open('hello.txt','r')
    for 
    line in handle:
        
    line line.rstrip()
        print 
    line
    handle
    .close() 
    Input File: hello.txt
    MirŽdita - Albanian
    G'day - Australian
    Bog - Croatia
    Ahoj - Czech
    Hej - Danish
    Hallo - Dutch
    Hello - English
    Hei - Finnish
    Bonjour - French
    Guten tag - German
    Aloha - Hawaiian
    Jů napot - Hungarian
    Gůūan dag - Icelandic
    Halo - Indonesian
    Dia dhuit - Irish
    Ciao - Italian
    Hallo - Norwegian
    Bună ziua - Romanian
    Здравствуйте (zdrŠvstvujte) - Russian
    Hola (oh-la) - Spanish
    Hujambo - Swahili
    HallŚ - Swedish
    Merhaba - Turkish
    Вітаю (vitayu) - Ukrainian
    Chŗo (jow) - Vietnamese
    HylŰ - Welsh
    Sawubona - Zulu
    And here's the output:
    Click image for larger version. 

Name:	Capture.PNG 
Views:	1 
Size:	109.9 KB 
ID:	44929
      My ComputerSystem Spec
  7.    25 Apr 2017 #7
    Join Date : Apr 2017
    Posts : 1
    linux

    I read in the past this article about python class that help me a lot. It's for an intermediate than for a begginer (or a begginer that is almost an intermediate python developer).

    I didn't know about duck typing before!
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
A class/course to learn Python is starting on Oct 23rd...
Just an FYI to anyone who might be interested in learning how to program this is one of the best introduction classes I have found to date. 1 It's free but there is a fee if you want a certificate. 2 The instructor is an Associate Professor...
Chillout Room
Best forum for programming Windows Apps?
Please advise on a forum for Windows 10 programming. I'm looking to both re-write apps for desktop and new apps for my Windows Phone. Having used C for most of my life I'm now progressing to C# and XAML.
Software and Apps
Python Class.. University of Rice
Interactive programming in/with Python will start on May 23rd.. it's a good class. I took part of it but I had to drop out and I plan on finishing it this time and then take the second part that begins on June 11th. Both are fun and a quick way...
Chillout Room
Programming Chalagens
I've been doing these in Python but any language can be used. 1. love6 Solution in Python version 2.7.9 def love6(a, b): if (a == 6 or b == 6): return True elif (a + b == 6):
Chillout Room
My Coursera Class is Done!! (Python)
I finished my Coursera class - Programming for Everybody - Python. Dr. Severance is a great instructor and I had a lot of fun. I'm just waiting for the final grade and my certificate. I should be receiving one with distinction. I needed to get 233...
Chillout Room
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:44.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums