2: From Python to C

To quickly get up to speed with C, we translate some Python code to C and compare and contrast the two languages to prepare you for Chapter 1 of the book. This course assumes you know at least Python and hopefully passing understanding of JavaScript and maybe even PHP, so the overall C syntax should not be 100% new to you.

Slides

Videos

References

Discussions

  • From Python to C (Login Required)

Tools

  • Autograder: Write Hello World (Login Required)
  • Exercise RS-1: Produce output (Login Required)
  • Exercise RS-2: Read Input (Login Required)
  • Exercise RS-3: Input / Output (Login Required)
  • Exercise RS-4: Reading Lines of Input (Login Required)
  • Exercise RS-5: Reading Lines of Input with fgets() (Login Required)
  • Exercise RS-6: Write a simple for loop (Login Required)
  • Exercise RS-7: Compute Minimum and Maximum (Login Required)
  • Exercise RS-8: Write a Guessing Game (Login Required)
  • Exercise RS-9: Write a Function (Login Required)