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

+1

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

+3

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..

+5

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

+4

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.

+4

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.

+2

Thank you for info E ~ J and Jayakrishna🇮🇳

+1

A͢J thank you !