Bringing It All Together

来源:互联网 发布:常用的特征提取算法 编辑:程序博客网 时间:2024/05/20 03:46
Bringing It All Together

Nice work! So far you've learned about the following in Python:

• Variables, which are ways to store values for later use;

• Data types (such as integersfloats, andbooleans);

• Whitespace (and why it's significant!);

• Statements (and how Python statements are like statements in regular English);

• Comments (and why they're good for your code!); and

• Arithmetic operations (including +-,*/**, and %).

Let's put all our knowledge to work.

  1. Write a single-line comment on line 1. It can be anything! (Make sure it starts with #!)
  2. Declare a variable, monty, and set it equal to True.
  3. Declare another variable, python, and set it equal to 1.234.
  4. Declare a third variable,monty_python, and set it equal topython squared.