User input into a variable to be used in a later function2019 Community Moderator ElectionCalling a function of a module by using its name (a string)Are static class variables possible?What is the naming convention in Python for variable and function names?How to flush output of print function?Using global variables in a functionHow to make a chain of function decorators?How do I pass a variable by reference?Checking whether a variable is an integer or notHow to access environment variable values?Tkinter assign Command to button

Recommendation letter by significant other if you worked with them professionally?

Why couldn't the separatists legally leave the Republic?

Expressing logarithmic equations without logs

Giving a career talk in my old university, how prominently should I tell students my salary?

Should I take out a loan for a friend to invest on my behalf?

How to resolve: Reviewer #1 says remove section X vs. Reviewer #2 says expand section X

Making a kiddush for a girl that has hard time finding shidduch

Trig Subsitution When There's No Square Root

What do you call someone who likes to pick fights?

Rationale to prefer local variables over instance variables?

Does an unused member variable take up memory?

Are small insurances worth it?

Is it possible that a question has only two answers?

ER diagram relationship node size adjustment

Which classes are needed to have access to every spell in the PHB?

What is this diamond of every day?

Getting the || sign while using Kurier

From an axiomatic set theoric approach why can we take uncountable unions?

Can the alpha, lambda values of a glmnet object output determine whether ridge or Lasso?

School performs periodic password audits. Is my password compromised?

What is the generally accepted pronunciation of “topoi”?

For which categories of spectra is there an explicit description of the fibrant objects via lifting properties?

What's the 'present simple' form of the word "нашла́" in 3rd person singular female?

What would be the most expensive material to an intergalactic society?



User input into a variable to be used in a later function



2019 Community Moderator ElectionCalling a function of a module by using its name (a string)Are static class variables possible?What is the naming convention in Python for variable and function names?How to flush output of print function?Using global variables in a functionHow to make a chain of function decorators?How do I pass a variable by reference?Checking whether a variable is an integer or notHow to access environment variable values?Tkinter assign Command to button










-2















I wanted to make a program that allowed the user to pick a stock ticker and other inputs, and then get real-time data that immediately went back into the program and would display the stock info and stuff.



The user should then be able to pick a stock and also a start and end date, and see some basic stock info from those dates. That code itself works, but I've been struggling with being able to use a GUI to provide inputs into the stock program.



from tkinter import *
#import tkinter
from tkinter import ttk
import random
import random
import datetime as dt
import matplotlib.pyplot as plt
from matplotlib import style
import pandas as pd
import pandas_datareader.data as web
from optparse import OptionParser

compname = 'Company Name'
tckersymbl = 'Ticker Symbol'
strtdte = 'Start Date (y, m, d)'
numbday = 'Number of Days'


#fields = 'Company Name', 'Ticker Symbol', 'Start Date (y, m, d)', 'Number of Days'

def fetch(entries):
for entry in entries:
field = entry[0]
text = entry[1].get()
companyname = entry[0]
print('%s: "%s"' % (field, text))


def makeform(root, tckersymbl):
entries = []
for field in compname:
companyname = entry[0]
row = Frame(root)
lab = Label(row, width=15, text=field, anchor='w')
ent = Entry(row)
row.pack(side=TOP, fill=X, padx=5, pady=5)
lab.pack(side=LEFT)
ent.pack(side=RIGHT, expand=YES)
entries.append((field, ent))
return entries

def fetch1(entries):
for entry in entries:
field1 = entry[2]
text1 = entry[3].get()
ticker = entry[2]
print('%s: "%s"' % (field1, text1))

def makeform1(root, tckersymbl):
entries = []
for field1 in tckersymbl:
ticker = entry[2]
row = Frame(root)
lab = Label(row, width=15, text=field1, anchor='w')
ent = Entry(row)
row.pack(side=TOP, fill=X, padx=5, pady=5)
lab.pack(side=LEFT)
ent.pack(side=RIGHT, expand=YES)
entries.append((field1, ent))
return entries

def fetch2(entries):
for entry in entries:
field2 = entry[4]
text2 = entry[5].get()
startday = entry[4]
startday1 = startday.int()
print('%s: "%s"' % (field2, text2))

def makeform2(root, strtdte):
entries = []
for field2 in strtdte:
startday = entry[4]
startday1 = startday.int()
row = Frame(root)
lab = Label(row, width=15, text=field2, anchor='w')
ent = Entry(row)
row.pack(side=TOP, fill=X, padx=5, pady=5)
lab.pack(side=LEFT)
ent.pack(side=RIGHT, expand=YES)
entries.append((field2, ent))
return entries

def fetch3(entries):
for entry in entries:
field3 = entry[6]
text3 = entry[7].get()
numbdays = entry[6]
print('%s: "%s"' % (field3, text3))

def makeform3(root, numbday):
entries = []
for field3 in numbday:
numbdays = entry[6]
row = Frame(root)
lab = Label(row, width=15, text=field3, anchor='w')
ent = Entry(row)
row.pack(side=TOP, fill=X, padx=5, pady=5)
lab.pack(side=LEFT)
ent.pack(side=RIGHT, expand=YES)
entries.append((field3, ent))
return entries

#companyname = entry[0]
#ticker = entry[2]
#startday = entry[4]
#startday1 = startday.int()
#numbdays = entry[6]

print(companyname)
style.use('ggplot')

start = dt.datetime(startday1)
end = dt.datetime.now()

df = web.DataReader(ticker, 'iex', start, end)
df.reset_index(inplace=True)

print(df.head(numbdays)) #change value to change number of days you get. default is five


if __name__ == '__main__':
root = Tk()
root.geometry("350x175")
ents = makeform(root, compname, tckersymbl, strtdte, numbday)
root.bind('<Return>', (lambda event, e=ents: fetch(e)))
b1 = Button(root, text='Show',
command=(lambda e=ents: fetch(e)))
b1.pack(side=LEFT, padx=5, pady=5)
b2 = Button(root, text='Quit', command=root.quit)
b2.pack(side=LEFT, padx=5, pady=5)

root.mainloop()





#compname = 'Company Name'
#tckersymbl = 'Ticker Symbol'
#strtdte = 'Start Date (y, m, d)'
#numbday = 'Number of Days'









share|improve this question









New contributor




LeagueCapital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    -2















    I wanted to make a program that allowed the user to pick a stock ticker and other inputs, and then get real-time data that immediately went back into the program and would display the stock info and stuff.



    The user should then be able to pick a stock and also a start and end date, and see some basic stock info from those dates. That code itself works, but I've been struggling with being able to use a GUI to provide inputs into the stock program.



    from tkinter import *
    #import tkinter
    from tkinter import ttk
    import random
    import random
    import datetime as dt
    import matplotlib.pyplot as plt
    from matplotlib import style
    import pandas as pd
    import pandas_datareader.data as web
    from optparse import OptionParser

    compname = 'Company Name'
    tckersymbl = 'Ticker Symbol'
    strtdte = 'Start Date (y, m, d)'
    numbday = 'Number of Days'


    #fields = 'Company Name', 'Ticker Symbol', 'Start Date (y, m, d)', 'Number of Days'

    def fetch(entries):
    for entry in entries:
    field = entry[0]
    text = entry[1].get()
    companyname = entry[0]
    print('%s: "%s"' % (field, text))


    def makeform(root, tckersymbl):
    entries = []
    for field in compname:
    companyname = entry[0]
    row = Frame(root)
    lab = Label(row, width=15, text=field, anchor='w')
    ent = Entry(row)
    row.pack(side=TOP, fill=X, padx=5, pady=5)
    lab.pack(side=LEFT)
    ent.pack(side=RIGHT, expand=YES)
    entries.append((field, ent))
    return entries

    def fetch1(entries):
    for entry in entries:
    field1 = entry[2]
    text1 = entry[3].get()
    ticker = entry[2]
    print('%s: "%s"' % (field1, text1))

    def makeform1(root, tckersymbl):
    entries = []
    for field1 in tckersymbl:
    ticker = entry[2]
    row = Frame(root)
    lab = Label(row, width=15, text=field1, anchor='w')
    ent = Entry(row)
    row.pack(side=TOP, fill=X, padx=5, pady=5)
    lab.pack(side=LEFT)
    ent.pack(side=RIGHT, expand=YES)
    entries.append((field1, ent))
    return entries

    def fetch2(entries):
    for entry in entries:
    field2 = entry[4]
    text2 = entry[5].get()
    startday = entry[4]
    startday1 = startday.int()
    print('%s: "%s"' % (field2, text2))

    def makeform2(root, strtdte):
    entries = []
    for field2 in strtdte:
    startday = entry[4]
    startday1 = startday.int()
    row = Frame(root)
    lab = Label(row, width=15, text=field2, anchor='w')
    ent = Entry(row)
    row.pack(side=TOP, fill=X, padx=5, pady=5)
    lab.pack(side=LEFT)
    ent.pack(side=RIGHT, expand=YES)
    entries.append((field2, ent))
    return entries

    def fetch3(entries):
    for entry in entries:
    field3 = entry[6]
    text3 = entry[7].get()
    numbdays = entry[6]
    print('%s: "%s"' % (field3, text3))

    def makeform3(root, numbday):
    entries = []
    for field3 in numbday:
    numbdays = entry[6]
    row = Frame(root)
    lab = Label(row, width=15, text=field3, anchor='w')
    ent = Entry(row)
    row.pack(side=TOP, fill=X, padx=5, pady=5)
    lab.pack(side=LEFT)
    ent.pack(side=RIGHT, expand=YES)
    entries.append((field3, ent))
    return entries

    #companyname = entry[0]
    #ticker = entry[2]
    #startday = entry[4]
    #startday1 = startday.int()
    #numbdays = entry[6]

    print(companyname)
    style.use('ggplot')

    start = dt.datetime(startday1)
    end = dt.datetime.now()

    df = web.DataReader(ticker, 'iex', start, end)
    df.reset_index(inplace=True)

    print(df.head(numbdays)) #change value to change number of days you get. default is five


    if __name__ == '__main__':
    root = Tk()
    root.geometry("350x175")
    ents = makeform(root, compname, tckersymbl, strtdte, numbday)
    root.bind('<Return>', (lambda event, e=ents: fetch(e)))
    b1 = Button(root, text='Show',
    command=(lambda e=ents: fetch(e)))
    b1.pack(side=LEFT, padx=5, pady=5)
    b2 = Button(root, text='Quit', command=root.quit)
    b2.pack(side=LEFT, padx=5, pady=5)

    root.mainloop()





    #compname = 'Company Name'
    #tckersymbl = 'Ticker Symbol'
    #strtdte = 'Start Date (y, m, d)'
    #numbday = 'Number of Days'









    share|improve this question









    New contributor




    LeagueCapital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      -2












      -2








      -2








      I wanted to make a program that allowed the user to pick a stock ticker and other inputs, and then get real-time data that immediately went back into the program and would display the stock info and stuff.



      The user should then be able to pick a stock and also a start and end date, and see some basic stock info from those dates. That code itself works, but I've been struggling with being able to use a GUI to provide inputs into the stock program.



      from tkinter import *
      #import tkinter
      from tkinter import ttk
      import random
      import random
      import datetime as dt
      import matplotlib.pyplot as plt
      from matplotlib import style
      import pandas as pd
      import pandas_datareader.data as web
      from optparse import OptionParser

      compname = 'Company Name'
      tckersymbl = 'Ticker Symbol'
      strtdte = 'Start Date (y, m, d)'
      numbday = 'Number of Days'


      #fields = 'Company Name', 'Ticker Symbol', 'Start Date (y, m, d)', 'Number of Days'

      def fetch(entries):
      for entry in entries:
      field = entry[0]
      text = entry[1].get()
      companyname = entry[0]
      print('%s: "%s"' % (field, text))


      def makeform(root, tckersymbl):
      entries = []
      for field in compname:
      companyname = entry[0]
      row = Frame(root)
      lab = Label(row, width=15, text=field, anchor='w')
      ent = Entry(row)
      row.pack(side=TOP, fill=X, padx=5, pady=5)
      lab.pack(side=LEFT)
      ent.pack(side=RIGHT, expand=YES)
      entries.append((field, ent))
      return entries

      def fetch1(entries):
      for entry in entries:
      field1 = entry[2]
      text1 = entry[3].get()
      ticker = entry[2]
      print('%s: "%s"' % (field1, text1))

      def makeform1(root, tckersymbl):
      entries = []
      for field1 in tckersymbl:
      ticker = entry[2]
      row = Frame(root)
      lab = Label(row, width=15, text=field1, anchor='w')
      ent = Entry(row)
      row.pack(side=TOP, fill=X, padx=5, pady=5)
      lab.pack(side=LEFT)
      ent.pack(side=RIGHT, expand=YES)
      entries.append((field1, ent))
      return entries

      def fetch2(entries):
      for entry in entries:
      field2 = entry[4]
      text2 = entry[5].get()
      startday = entry[4]
      startday1 = startday.int()
      print('%s: "%s"' % (field2, text2))

      def makeform2(root, strtdte):
      entries = []
      for field2 in strtdte:
      startday = entry[4]
      startday1 = startday.int()
      row = Frame(root)
      lab = Label(row, width=15, text=field2, anchor='w')
      ent = Entry(row)
      row.pack(side=TOP, fill=X, padx=5, pady=5)
      lab.pack(side=LEFT)
      ent.pack(side=RIGHT, expand=YES)
      entries.append((field2, ent))
      return entries

      def fetch3(entries):
      for entry in entries:
      field3 = entry[6]
      text3 = entry[7].get()
      numbdays = entry[6]
      print('%s: "%s"' % (field3, text3))

      def makeform3(root, numbday):
      entries = []
      for field3 in numbday:
      numbdays = entry[6]
      row = Frame(root)
      lab = Label(row, width=15, text=field3, anchor='w')
      ent = Entry(row)
      row.pack(side=TOP, fill=X, padx=5, pady=5)
      lab.pack(side=LEFT)
      ent.pack(side=RIGHT, expand=YES)
      entries.append((field3, ent))
      return entries

      #companyname = entry[0]
      #ticker = entry[2]
      #startday = entry[4]
      #startday1 = startday.int()
      #numbdays = entry[6]

      print(companyname)
      style.use('ggplot')

      start = dt.datetime(startday1)
      end = dt.datetime.now()

      df = web.DataReader(ticker, 'iex', start, end)
      df.reset_index(inplace=True)

      print(df.head(numbdays)) #change value to change number of days you get. default is five


      if __name__ == '__main__':
      root = Tk()
      root.geometry("350x175")
      ents = makeform(root, compname, tckersymbl, strtdte, numbday)
      root.bind('<Return>', (lambda event, e=ents: fetch(e)))
      b1 = Button(root, text='Show',
      command=(lambda e=ents: fetch(e)))
      b1.pack(side=LEFT, padx=5, pady=5)
      b2 = Button(root, text='Quit', command=root.quit)
      b2.pack(side=LEFT, padx=5, pady=5)

      root.mainloop()





      #compname = 'Company Name'
      #tckersymbl = 'Ticker Symbol'
      #strtdte = 'Start Date (y, m, d)'
      #numbday = 'Number of Days'









      share|improve this question









      New contributor




      LeagueCapital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I wanted to make a program that allowed the user to pick a stock ticker and other inputs, and then get real-time data that immediately went back into the program and would display the stock info and stuff.



      The user should then be able to pick a stock and also a start and end date, and see some basic stock info from those dates. That code itself works, but I've been struggling with being able to use a GUI to provide inputs into the stock program.



      from tkinter import *
      #import tkinter
      from tkinter import ttk
      import random
      import random
      import datetime as dt
      import matplotlib.pyplot as plt
      from matplotlib import style
      import pandas as pd
      import pandas_datareader.data as web
      from optparse import OptionParser

      compname = 'Company Name'
      tckersymbl = 'Ticker Symbol'
      strtdte = 'Start Date (y, m, d)'
      numbday = 'Number of Days'


      #fields = 'Company Name', 'Ticker Symbol', 'Start Date (y, m, d)', 'Number of Days'

      def fetch(entries):
      for entry in entries:
      field = entry[0]
      text = entry[1].get()
      companyname = entry[0]
      print('%s: "%s"' % (field, text))


      def makeform(root, tckersymbl):
      entries = []
      for field in compname:
      companyname = entry[0]
      row = Frame(root)
      lab = Label(row, width=15, text=field, anchor='w')
      ent = Entry(row)
      row.pack(side=TOP, fill=X, padx=5, pady=5)
      lab.pack(side=LEFT)
      ent.pack(side=RIGHT, expand=YES)
      entries.append((field, ent))
      return entries

      def fetch1(entries):
      for entry in entries:
      field1 = entry[2]
      text1 = entry[3].get()
      ticker = entry[2]
      print('%s: "%s"' % (field1, text1))

      def makeform1(root, tckersymbl):
      entries = []
      for field1 in tckersymbl:
      ticker = entry[2]
      row = Frame(root)
      lab = Label(row, width=15, text=field1, anchor='w')
      ent = Entry(row)
      row.pack(side=TOP, fill=X, padx=5, pady=5)
      lab.pack(side=LEFT)
      ent.pack(side=RIGHT, expand=YES)
      entries.append((field1, ent))
      return entries

      def fetch2(entries):
      for entry in entries:
      field2 = entry[4]
      text2 = entry[5].get()
      startday = entry[4]
      startday1 = startday.int()
      print('%s: "%s"' % (field2, text2))

      def makeform2(root, strtdte):
      entries = []
      for field2 in strtdte:
      startday = entry[4]
      startday1 = startday.int()
      row = Frame(root)
      lab = Label(row, width=15, text=field2, anchor='w')
      ent = Entry(row)
      row.pack(side=TOP, fill=X, padx=5, pady=5)
      lab.pack(side=LEFT)
      ent.pack(side=RIGHT, expand=YES)
      entries.append((field2, ent))
      return entries

      def fetch3(entries):
      for entry in entries:
      field3 = entry[6]
      text3 = entry[7].get()
      numbdays = entry[6]
      print('%s: "%s"' % (field3, text3))

      def makeform3(root, numbday):
      entries = []
      for field3 in numbday:
      numbdays = entry[6]
      row = Frame(root)
      lab = Label(row, width=15, text=field3, anchor='w')
      ent = Entry(row)
      row.pack(side=TOP, fill=X, padx=5, pady=5)
      lab.pack(side=LEFT)
      ent.pack(side=RIGHT, expand=YES)
      entries.append((field3, ent))
      return entries

      #companyname = entry[0]
      #ticker = entry[2]
      #startday = entry[4]
      #startday1 = startday.int()
      #numbdays = entry[6]

      print(companyname)
      style.use('ggplot')

      start = dt.datetime(startday1)
      end = dt.datetime.now()

      df = web.DataReader(ticker, 'iex', start, end)
      df.reset_index(inplace=True)

      print(df.head(numbdays)) #change value to change number of days you get. default is five


      if __name__ == '__main__':
      root = Tk()
      root.geometry("350x175")
      ents = makeform(root, compname, tckersymbl, strtdte, numbday)
      root.bind('<Return>', (lambda event, e=ents: fetch(e)))
      b1 = Button(root, text='Show',
      command=(lambda e=ents: fetch(e)))
      b1.pack(side=LEFT, padx=5, pady=5)
      b2 = Button(root, text='Quit', command=root.quit)
      b2.pack(side=LEFT, padx=5, pady=5)

      root.mainloop()





      #compname = 'Company Name'
      #tckersymbl = 'Ticker Symbol'
      #strtdte = 'Start Date (y, m, d)'
      #numbday = 'Number of Days'






      python pandas tkinter






      share|improve this question









      New contributor




      LeagueCapital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      LeagueCapital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Mar 7 at 8:21









      ItsPete

      858926




      858926






      New contributor




      LeagueCapital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Mar 7 at 4:47









      LeagueCapitalLeagueCapital

      1




      1




      New contributor




      LeagueCapital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      LeagueCapital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      LeagueCapital is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          -1














          my_variable = input('enter your name: ') # Ari
          print(my_variable)
          >>> 'Ari'

          my_variable = input('enter a number: ') # 10
          print(my_variable)
          >>> '10'

          # Getting an actual integer, not as a string
          my_variable = int(input('enter a number: ')) # 10
          print(my_variable)
          >>> 10





          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );






            LeagueCapital is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55036279%2fuser-input-into-a-variable-to-be-used-in-a-later-function%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            -1














            my_variable = input('enter your name: ') # Ari
            print(my_variable)
            >>> 'Ari'

            my_variable = input('enter a number: ') # 10
            print(my_variable)
            >>> '10'

            # Getting an actual integer, not as a string
            my_variable = int(input('enter a number: ')) # 10
            print(my_variable)
            >>> 10





            share|improve this answer



























              -1














              my_variable = input('enter your name: ') # Ari
              print(my_variable)
              >>> 'Ari'

              my_variable = input('enter a number: ') # 10
              print(my_variable)
              >>> '10'

              # Getting an actual integer, not as a string
              my_variable = int(input('enter a number: ')) # 10
              print(my_variable)
              >>> 10





              share|improve this answer

























                -1












                -1








                -1







                my_variable = input('enter your name: ') # Ari
                print(my_variable)
                >>> 'Ari'

                my_variable = input('enter a number: ') # 10
                print(my_variable)
                >>> '10'

                # Getting an actual integer, not as a string
                my_variable = int(input('enter a number: ')) # 10
                print(my_variable)
                >>> 10





                share|improve this answer













                my_variable = input('enter your name: ') # Ari
                print(my_variable)
                >>> 'Ari'

                my_variable = input('enter a number: ') # 10
                print(my_variable)
                >>> '10'

                # Getting an actual integer, not as a string
                my_variable = int(input('enter a number: ')) # 10
                print(my_variable)
                >>> 10






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 7 at 5:14









                Ari VictorAri Victor

                4611422




                4611422






















                    LeagueCapital is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    LeagueCapital is a new contributor. Be nice, and check out our Code of Conduct.












                    LeagueCapital is a new contributor. Be nice, and check out our Code of Conduct.











                    LeagueCapital is a new contributor. Be nice, and check out our Code of Conduct.














                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55036279%2fuser-input-into-a-variable-to-be-used-in-a-later-function%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

                    Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

                    List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229