Variables?
(La)TeX is a macro language with macro-expansion/replacement.
You have macros, registers and parameters.
You can use macros that don't process arguments as variables.
In any case you need to be aware of how macro-expansion works and about the order in time in which single expansion-steps and assignments are carried out.
I'd just use a macro \name which takes a sequence of tokens nested in curly braces for the name of a control-sequence-token and via \csname..\endcsname constructs/delivers that control-sequence-token while leaving things in place that possibly occur between \name and the opening-curly-brace.
That control-sequence-token in turn can be (re)defined to be a macro or can be expanded, just as you like:
\documentclass{article}
\usepackage{pgffor}
\newcommand\name{}\long\def\name#1#{\romannumeral0\innername{#1}}%
\newcommand\innername[2]{%
\expandafter\exchange\expandafter{\csname #2\endcsname}{0 #1}%
}%
\newcommand\exchange[2]{#2#1}%
% This loop defines macros/control-word-tokens \wk[1], \wk[2], ... , \wk[10]
% with "empty" replacement-text:
\foreach \i in {1,2,...,10}{%
\name\newcommand*{wk[\i]}{}%
% \foreach opens up a local scope.
% Thus we need to turn assignments restricted to that scope into global
% assignments:
\name\name\global\let{wk[\i]}={wk[\i]}%
} %
\begin{document}
% This "stores the value 'this is week 2' into \wk[2]".
% Better: This redefines the macro \wk[2] to expand to the phrase "this is week 2".
\name\renewcommand*{wk[2]}{this is week 2}
% As there is nothing between \name and the opening brace, this just delivers the
% control-sequence-token \wk[2] which in turn gets expanded as usual while that
% expansion yields 'this is week 2':
\name{wk[2]}
% If eTeX-extensions are available, you can use \number\numexpr.. for calculations:
\name{wk[\number\numexpr(2*3)-5+1\relax]}
% this shows the definition/meaning of \wk[2] on the screen/in the .log-file:
%\name\show{wk[2]}
% this prints the meaning of \wk[2]
\texttt{\name\string{wk[2]}: \name\meaning{wk[2]}}
\end{document}
wkstring vector. It would also help if you stated which TeX engine you use: pdfLaTeX, XeLaTeX, LuaLaTeX, or something else? – Mico Dec 09 '18 at 07:26