Question: 1. Write a simple python code to print the output Hello World in Command Prompt. 2. Create a variable with the floating number 3.142.

1. Write a simple python code to print the output

1. Write a simple python code to print the output "Hello World" in Command Prompt. 2. Create a variable with the floating number 3.142. 3. Write a sketch to print the data type of variable "var" as shown follows: var = 5.5 4. Define a simple function to sum to 2 input arguments x and y. 5. Correct the following codes. (1) A = 33 B = 200 if b > a: print ("b is greater than a") (ii) for x in range (6) print (x) else print ("Finally finished!") 6. Determine the output of the following coding. (i) for x in range (8): print (x) (ii) for x in range (2,9): print (x)

Step by Step Solution

3.51 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Lets go through each task step by step 1 Write a simple Python code to print the output He... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!