+ 2

Please help me. how to print number

I am from begginer

20th Sep 2022, 5:53 AM
Noorullah Salih
Noorullah Salih - avatar
16 Answers
+ 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)
20th Sep 2022, 2:12 PM
Mayur Sonare
Mayur Sonare - avatar
+ 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
20th Sep 2022, 6:36 AM
Ipang
+ 2
print(10) no need to put quotes https://code.sololearn.com/cOHRZTRN74tZ/?ref=app
21st Sep 2022, 3:27 AM
Fathima Shazana Naleem
+ 1
Karan Singh "Print(10)" will give an error. It'll be "print(10)"
20th Sep 2022, 11:12 AM
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️ - avatar
+ 1
Two ways 1) //You can set any value that do you need. × = 0; print(x) 2) print(0)
21st Sep 2022, 2:43 AM
Ezequiel Giannoni
Ezequiel Giannoni - avatar
+ 1
Syntax : print(<number>) Ex - >>>print(10) And its output would be... >>>10
21st Sep 2022, 6:59 AM
Adarsh Jaiswal
Adarsh Jaiswal - avatar
+ 1
Madiha Naaz print(A)
21st Sep 2022, 4:53 PM
KARAN SINGH D
KARAN SINGH D - avatar
0
Using print() function. Example: number = 10 print(number)
20th Sep 2022, 7:09 AM
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️ - avatar
0
#use print() print(10)
20th Sep 2022, 9:50 AM
KARAN SINGH D
KARAN SINGH D - avatar
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)
22nd Sep 2022, 4:43 AM
KARAN SINGH D
KARAN SINGH D - avatar
- 1
Please
20th Sep 2022, 5:53 AM
Noorullah Salih
Noorullah Salih - avatar
- 1
20th Sep 2022, 4:28 PM
KARAN SINGH D
KARAN SINGH D - avatar
- 1
Karan Singh Print(): Here "P" will be lowercase "p"
21st Sep 2022, 2:35 AM
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️
⛈️𝕾𝖚𝖒𝖆 𝕭𝖆𝖘𝖆𝖐❄️ - avatar
- 1
Use print statement Program :- Print (10)
21st Sep 2022, 6:02 AM
S Kamesh
- 1
A=10 print(a)
21st Sep 2022, 4:47 PM
Madiha Naaz
- 3
Num=10 Print(num);
21st Sep 2022, 5:57 PM
Ruchitha
Ruchitha - avatar