Skip to content

Final-PythonFoundationHomework/variables_and_types

Repository files navigation

Variables and data Types

begin01

Assign 5 (int value) to 'num_one' variable;
Assign 4 (int value) to 'num_two' variable;
Print the sum of 'num_one' and 'num_two'.

Input:num_one, num_two.
Output: the sum.

Input Output
5 4 9

begin02

Assign 7 (int value) to 'a' variable;
Assign 3 (int value) to 'b' variable;
Print the difference between 'a' and 'b'.

Input:a, b.
Output: the difference.

Input Output
7 3 4

begin03

Assign 6 (int value) to 'a' variable;
Assign 8 (int value) to 'b' variable;
Print the multiplicand 'a' and 'b'.

Input:a, b.
Output: the multiplicand.

Input Output
6 8 48

begin04

Assign 12 (int value) to 'a' variable;
Assign 3 (int value) to 'b' variable;
Print the division of a by b.

Input:a, b.
Output: the division.

Input Output
12 3 4.0

begin05

Assign 7 (int value) to 'a' variable;
Assign 3 (int value) to 'b' variable;
Assign 5 (int value) to 'c' variable;
Print the sum of three variables 'a', 'b', 'c';

Input:a, b, c.
Output: the sum.

Input Output
7 3 5 15

begin06

Assign 24 (int value) to 'a' variable;
Assign 3 (int value) to 'b' variable;
Assign 5 (int value) to 'c' variable;
Assign the result of the expression to variable 'k': ;
Print the variable 'k'.

Input:a, b, c.
Output: k.

Input Output
24 3 5 26

begin07

Assign 5 (int value) to 'a' variable;
Assign 4 (int value) to 'b' variable;
Assign 8 (int value) to 'c' variable;
Print the result of the expression: .

Input:a, b, c.
Output: the result of the expression.

Input Output
5 4 8 20.0

begin08

Assign 5 (int value) to 'a' variable;
Assign 4 (int value) to 'b' variable;
Assign 8 (int value) to 'c' variable;
Print the result of the expression: .

Input:a, b, c.
Output: the result of the expression.

Input Output
5 4 8 2.5

begin09

Assign 8 (int value) to 'a' variable;
Assign 3 (int value) to 'b' variable;
Assign 2 (int value) to 'c' variable;
Assign 4 (int value) to 'd' variable;
Assign the result of the expression to variable 'k': ;
Print the variable 'k'.

Input:a, b, c, d.
Output: the result of the expression.

Input Output
8 3 2 4 3

begin10

Assign 5 (int value) to 'a' variable;
Assign 4 (int value) to 'b' variable;
Assign 2 (int value) to 'c' variable;
Assign 8 (int value) to 'd' variable;
Assign the result of the expression to variable 'k': ;
Print the variable 'k'.

Input:a, b, c, d.
Output: Natijani chiqaring.

Input Output
5 4 2 8 8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages