What is the difference between N and n? | Sololearn: Learn to code for FREE!


What is the difference between N and n?

I’ve seen time and time again the interchange of Capitol N and lower case n. For example: “ write a program where N number has to be printed to the console” Can anyone explain ? Please, and thank you for your time.

8/18/2022 10:42:30 AM

Brent Tyson

6 Answers

New Answer


Your tagged languages are all case sensitive languages meaning that they treat that a small letter with respective of its capital letters are different to each other. So n and N are to different tokens..


Code example N = int(input()) n = 0 while n < N: print(n) n += 1


Simply, N and n are variables.For example write program which contains from 1 to N.You can put instead of N as you want numbers.


Brent Tyson In this case N is just a value. You say 'N' numbers or say 'n' numbers both are same thing. There is no difference.


Thank you for info E ~ J and Jayakrishna🇮🇳


A͢J thank you !