print python program
Answers
Answered by
2
nums=[10,9,8,76,5]
nums[0]=nums[1]-5
if 4 in nums:
print(nums[3])
else:
print(nums[4])
result = 7
nums[0]=nums[1]-5
if 4 in nums:
print(nums[3])
else:
print(nums[4])
result = 7
Answered by
2
Print in python is typically used to PRINT anything. Print on the display screen.
The basic command to print anything is print()
Let's say you want to print hi.
print('hi')
It has to be inside the apostrophe due to 'hi' being a string.
let's have two variables.
a = 'hi'
b = 'there'
print(a+b)
Output would be : hithere
let's say print(a,b)
output would be : hi there
That is the basic glimpse of what print is in python.
Similar questions