2nd Semester Intro to Computer Science

Do Now 2.01

Open up the console

Type the following code

 x_stage1 = 123
 y_stage1 = 456

 x_stage2 = str(x_stage1)
 y_stage2 = str(y_stage1)

 print(x_stage2 + y_stage2)

In your Notebook

Answer the following

  1. What type are the variables x_stage1 and y_stage1?
  2. What type are the variables x_stage2 and y_stage2?
  3. How would you convert a string, '100' to an integer?

Edit this page Report an issue