C Programming for Python Developers


Course Number: PYTH-276
Duration: 3 days (19.5 hours)
Format: Live, hands-on

C and Python Training Overview

This C Programming for Python Developers training course teaches attendees the C programming language and how to incorporate custom C libraries into their Python programs. Participants learn the essentials of C programming to write programs and code libraries.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Learn how to set up a C programming environment
  • Explore how to program and run C programs
  • Learn code organization through functions and include files
  • Understand static typing and dynamic memory allocation
  • Practice writing C code called from Python

Prerequisites

Students should be able to write simple Python scripts using basic data types, program structures, and the standard Python library. All students must be software developers with a strong understanding of software development and modern programming languages.

Outline

Expand All | Collapse All

Introduction
The Development Environment
  • Overview of Virtual Machine for Class
  • Visual Studio Code Extensions for C
  • Debugging C with VS Code
The C Programming Language
  • Development Tools
    • Makefile
    • CMake
    • CPP Check
  • Program Structure
    • Main Function
    • Include Files
    • Header Files
    • Compile to Executable
    • Compile to Shared Library
    • Using Libraries
    • Common Compile Options
  • Data Types
    • Numbers
    • Strings (Arrays of Characters)
    • Arrays
    • Structs
    • Type Defs
    • Type Casting
    • Static Typing vs. Dynamic Typing
    • Loose Typing vs. Strong Typing
    • Static Types
  • Control Flow
    • If
    • Switch
    • While
    • Do-While
    • For
    • Goto
  • Functions
    • Define a Function
    • Call a Function
    • Passing Arguments/Parameters
    • Return Values
    • Function References
    • Pointers
    • Pass By Value vs. Pass By Reference
    • Dynamically Allocating Memory on the Heap
    • Principles and Practices of Dynamic Memory Allocation
    • Linked Lists
    • Untyped Pointers
  • Python and C Integration
    • NumPy Arrays
    • Ctypes FFI
    • Python Struct and Structure
    • Create a Simple C Extension for Python
    • Debug a C Extension for Python
    • Review C Code generated by Cython
  • Basic Profiling of Python programs calling C functions
    • cProfile
    • Time
Conclusion

Training Materials

All C/Python training students receive comprehensive courseware.

Software Requirements

  • A virtual machine (VM) with all tools pre-installed will be provided.
  • Students will receive setup instructions for their local machine, but no support will be provided in class to get it working if it has problems.
  • Students will need RDP or SSH to access the VM; even those planning to work locally need remote access if their local setup has problems.


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan