CS
  • Home
  • Languages
    • Python >
      • Basics
      • Conditions & Loops
      • Functions and Modules
      • Other Data Types
      • Errors and Exceptions
      • Projects
    • C + + >
      • Basics
      • Functions
      • Conditions & Loops
  • Programs
  • About

Basics

1 - Hello WOrld
2 - Data Types
3 - Variables
4 - input
5 - Comments
6 - Simple Math
7 - Assignment Operators
8 - Format
Exercises
  • Output Hello World
  • Output 5 Favorites (color, movies, food, apps, programming languages, etc.)
  • Ask for user's name and output a greeting with the given name.
  • Ask for a number and output the square (power of 2)
  • ​Convert a given Fahrenheit temperature to Celsius.

Possible Solutions

Output Hello World

    

Output 5 Favorites
  • Each print statement on different lines
  • One print statement using \n character

    

Ask for user's name and output a greeting with the given name.
  • Remember to include spaces for concatenation

    

Ask for a number and output the square (power of 2)

    

Convert a given Fahrenheit temperature to Celsius.
  • Remember to convert the input into a number

    
Powered by Create your own unique website with customizable templates.
  • Home
  • Languages
    • Python >
      • Basics
      • Conditions & Loops
      • Functions and Modules
      • Other Data Types
      • Errors and Exceptions
      • Projects
    • C + + >
      • Basics
      • Functions
      • Conditions & Loops
  • Programs
  • About