Hello, everyone, My name is Omar 23 years old and I'm new to programming while I was learning and doing some practice I couldn't figure out how to fix it and the problem is how do I print a value without a variable? I tried to write the code in different ways looking up answers but cannot find any
Variables
Hello, everyone, My name is Omar 23 years old and I'm new to programming while I was learning and doing some practice I couldn't figure out how to fix it and the problem is how do I print a value without a variable? I tried to write the code in different ways looking up answers but cannot find any
Can you specify what language you are using?
For example, in
JavaScript
, you can do:Whereas in
Python
the exact same code becomes:Generally speaking, a print function in most languages will accept any value of any default type.