• Register

Recent questions tagged variable

0 votes
1 answer 14 views
How do I loop over python list with variables ?
asked Oct 28 psandprop 2.4k points
0 votes
2 answers 21 views
import os A = os.path.join(os.path.dirname(__file__), '..') B = os.path.dirname(os.path.realpath(__file__)) C = os.path.abspath(os.path.dirname(__file__)) I usually just hard-wire these with the actual path. But there is a reason for these statements that determine path at runtime, and I would really like to understand the os.path module so that I can start using it.
asked Oct 25 psandprop 2.4k points
1 vote
2 answers 97 views
Problem: Hello everyone, I am a newly registered member here. I found you guys so amazing and helpful. Out of curiosity I just started learning the Java programming language and made my very first program that will add two different numbers. public class Main{ public static void main( ... out the error in my code. I know I did something very silly but I am unable to figure out that. Thanks a lot.
asked Apr 6 Gavin 15.3k points
1 vote
1 answer 31 views
Problem: I am a little curious about java variables. I was trying to figure out how does it work if I don’t initialize a variable after defined. I assumed if the variable is an integer it could be equivalent to 0 and for String, it could be a null ... use a local variable before it has been given a value: Can anybody explain the thing clearly to me? Your answers are appreciated. Thanks.
asked Mar 19 Gavin 15.3k points
0 votes
1 answer 25 views
I am a newbee. I was doing my coding practice. I was trying to check if a variable exist in a file or not. I wrote some code to do this : def Check(): if Check.my_variable is None: Check.my_variable = >>> Check.my_variable = None but it gives me error : File "main.py", line 3 Check.my_variable = >>> ^ SyntaxError: invalid syntax What is the error in my code and why am I getting this type of error.
asked Mar 14 LizzyM 6.1k points
1 vote
1 answer 24 views
Problem: I simply want to know what is the Scope of variables in c++, and why the program throws back errors like, “c++ was not declared in this scope”? Please keep your words as simple as possible. Thanks.
asked Mar 10 Gavin 15.3k points
0 votes
1 answer 38 views
Problems: I am new in programming and my logic is not good, can anyone give the right solution? How can we declare an array named scores of twenty-five elements of type int?
asked Feb 13 maddi86 5.4k points
0 votes
1 answer 87 views
Problems:- Can any one help with one of the query I am facing in declaring variable type Declare a reference variable of type File named myFile. Any Idea
asked Feb 13 maddi86 5.4k points
To see more, click for the full list of questions or popular tags.