Beginning Python for Non-Programmers
  • Cover
  • About the Author
  • Introduction to Programming
    • What is Programming?
    • What Programmers Do
    • The Mind of a Programmer
    • How Does a Programmer Think?
  • Programming Languages
    • Python
    • HTML / CSS
    • JavaScript / TypeScript
    • C, C++, C#
    • Java
    • SQL
  • Introduction to Python
    • What is Python?
    • Types of Python Programs
    • Core Tools for Python Programming
      • Python Interpreter
      • Jupyter Notebooks
      • Visual Studio Code
      • Python Playground
      • Pycharm Community Edition
  • Installing Python
    • Step-by-step guide for Windows Users
    • Step-by-step guide for Mac Users
  • Installing Visual Studio Code
    • Step-by-step guide for Windows Users
    • Step-by-step guide for Mac Users
  • Writing and Running Your First Python Program
  • Basic Concepts of Python Programming
  • Control Flow in Python
  • Functions and Reusability
  • Debugging and Problem Solving
  • Exploring More Python Concepts
  • Adding Python Packages with pip
  • Python Web Frameworks
  • Resources for Continued Learning
    • CodeAcademy.com
    • Python.org
    • SoloLearn.com
    • coursera.com
    • udemy.com
    • youtube.com
    • Code With Mosh
    • GameDev.tv
  • Staying Motivated and Practicing Regularly
  • Appendices
    • Beginner Project Ideas for Learning
    • Python Cheat Sheet
    • Frequently Asked Questions for Beginners
Powered by GitBook
On this page
  • C
  • C++
  • C#

Was this helpful?

Edit on GitHub
  1. Programming Languages

C, C++, C#

C

The C programming language was designed to give programmers the ability to write code that's fast and portable. Operating systems and device drivers are usually written in C.

#include <stdio.h>
int main()
{
  printf("Hello world\n");
  return 0;
}

C++

C++ was introduced to add object oriented capabilities to the C language. Over the years, C++ has evolved quite a bit and does not look much like C anymore. It is still considered to be a harder language than most.

#include <iostream>
 
int main()
{
  std::cout << "Hello World!" << std::endl;
  return 0;
}

C#

C# started by trying to simplify C programming. It's evolved enough that it's actually quite different than C or C++, even though the name is similar. It gives you the ability to write advanced native applications for Windows or Macs without having to learn some of the harder aspects that you have to do manually in C or C++. It's a great language. After you've learned Python or JavaScript, it is a good second language.

using System;

namespace HelloWorld
{
     class Program
     {
        static void Main(string[] args)
        {
             Console.WriteLine("Hello World!");
        }
     }
}

Some content generated with AI

PreviousJavaScript / TypeScriptNextJava

Last updated 9 months ago

Was this helpful?