Learn to program

 
  Finch assignments ::

Learning Goal: Understand how to write a program to control a robot, using loops, conditionals and subroutines where appropriate.

 

 
 

Learning Goal: Student will be able to write a program that controls the robot
Daily objective: Student will understand Python Variables and Types.

Lesson 6 - Python Variables and Types.......python variable

Python terms can be strings or different types of number.

1). Watch this video about strings.

2). Watch this video about variables.

3). Watch this video with today's lesson.

 

 

Assignment 6 part 1:

Write a program in a separate module that asks your name, and asks you to input a number. The program should calculate
the square of the number you put in, and print out:

My name is the name that was read in

The answer is the square of the input number

Remember that the 'input' command reads into the memory as strings, not numbers.
You can convert a string to an integer (int) or a floating point number (float).

Save the program to Shared - Students - Pereira - Ai 201x - Class color - Finch assignments - Asssignment 6

as part1yourname.

 

Assignment 6 part 2:

Write a program that asks what speed and time the robot shuld use, and have the robot use these inputs to
move forward, then backward, using the inputs as the parameters.

Save the program to Shared - Students - Pereira - Ai 201x - Class color - Finch assignments - Asssignment 6

as part2yourname.

 

 

Write a Reflection on what you have learned.