+ 2
Please help me. how to print number
I am from begginer
16 Respuestas
+ 3
A number can be print in python in two ways :-
1) either through variable
:- syntax
num=10
print(num)
2) directly
:-syntax
print(10)
+ 2
It's available in the lesson. Go ahead and join the course so you can learn how to do that, and lots more 👍
https://www.sololearn.com/Course/JUMP_LINK__&&__Python__&&__JUMP_LINK/?ref=app
+ 2
print(10)
no need to put quotes
https://code.sololearn.com/cOHRZTRN74tZ/?ref=app
+ 1
Karan Singh
"Print(10)" will give an error.
It'll be "print(10)"
+ 1
Two ways
1) //You can set any value that do you need.
× = 0;
print(x)
2)
print(0)
+ 1
Syntax : print(<number>)
Ex -
>>>print(10)
And its output would be...
>>>10
+ 1
Madiha Naaz
print(A)
0
Using print() function.
Example:
number = 10
print(number)
0
#use print()
print(10)
0
Khuthuru Roopa
See the capital "N" in Num and small "n" in print function .line no 2 will give an Error.
Num = 10
print(Num)
- 1
Please
- 1
Suma Basak❄️
?? What?
- 1
Karan Singh
Print(): Here "P" will be lowercase "p"
- 1
Use print statement
Program :-
Print (10)
- 1
A=10
print(a)
- 3
Num=10
Print(num);