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
console.log("string"); console.log(51.62); console.log(true); // etc (this is a comment)
Python the exact same code becomes:
print("string") print(51.62) print(True) # etc (this is a comment)
Generally speaking, a print function in most languages will accept any value of any default type.