0
Related to coding
Am I able to do two coding in one file
9 Antworten
0
you can do 2 coding languages at the same time are you on mobile or pc
+ 1
Please share your code.
+ 1
Varsha Choudhary ,ok, then you have to use the print() function.
[The print() function is a built-in in function in python that tells the computer to display something on the console. The part that you want to display has to be mentioned as the argument of the print () function.]
To display January on the screen, you have to write:
» print('January')
Alternatively,
» month = 'January'
print(month)
You shall get the desired output either way.
[Note:- Just remember to use matching single or double quotes in the first code because you want to print a string data type.
And also, don't make any error while calling the variable (month) in the second or it will raise an error.]
Hope your doubt is cleared.
0
Varsha Choudhary ok, so what's your question...?
0
I had write a code but it shows error
0
Month = 'January' is the code.
0
I'm sorry, but I do not quite understand you.
Do you want to display January on the screen? Or do you want to determine which month it is like first or second...? Or is it something else?
Please let me know.
0
Yes I want to display january on screen
0
Okay