When I run this code everything works as intended until the last line where I get the following error:  TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'str'   If I'm understanding this correctly X and Y are being recognized as strings (literally the letters X and Y).  Not the variables representing the integer the user input.  So how do I get Python to see the user input and not the string?  My apologies for asking something so basic but I've searched around and haven't found an answer, or at least not one I understand.    print("Hello!") x = input("Please enter the number to be raised:") print("Confirmed.  We are going to raise", x) y = input("Please enter the power you want it raised to:") print("Confirmed.  Raising", x, "to the power of", y) print (x**y)
In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or parse the string "31" to an integer, 31?  I just want to know how to parse a float str to a float, and (separately) an int str to an int.
Is adding a time dummy the same as estimating by within-time fixed effects? Customizing the output of Compass sprites What's the reasoning behind phrase "dissertation submitted in partial fulfillment of the requirements"? Phrase "dissertation submitted in partial fulfillment of the requirements" seems strange. Can one submit dissertation in full fulfillment of the requirements? In the sentence-     You must wear a suit to an interview   shouldn't the to be replaced by for? Or what's the difference between these two here? subcaption vs. subfig: Best package for referencing a subfigure Get the size of the screen, current web page and browser window I am typing to get a sale amount (by input) to be multiplied by a defined sales tax (0.08) and then have it print the total amount (sales tax times sale amount).  I run into this error. Anyone know what could be wrong or have any suggestions?   salesAmount = raw_input (["Insert sale amount here \n"]) ['Insert sale amount here \n']20.99 &gt;&gt;&gt; salesTax = 0.08 &gt;&gt;&gt; totalAmount = salesAmount * salesTax  Traceback (most recent call last):   File "&lt;pyshell#57&gt;", line 1, in &lt;module&gt;     totalAmount = salesAmount * salesTax TypeError: can't multiply sequence by non-int of type 'float' I moved a database from SQL Server 2005 to SQL Server 2012. Is there any way of restoring all the logins on the new server? My work has decided to issue their own  (CA) to handle different aspects of our work securely without paying for certificates.   Cryptographically sign emails Encrypt email contents Make access to things like the company  client-certificate based. Revoke the keys of former employees automatically   They sent me a .pem file, and I'm not sure how to add it to my Ubuntu install. The instructions sent were: "Double-clicking on it on a Mac should install it."&nbsp;  How do I proceed? Do I need to do something with  to create a .key, .csr, or .crt file? A "friends list" on Stack Overflow would be nice I think it would be nice to have a "friends list" on Stack Overflow. This would allow us to be able to follow the questions and answers that are posted by users that we want to watch/monitor.  I suggest it be implemented in the same fashion as DotNetKicks.com; where you can add someone to your "friends list" without them needing to approve you the way that other social networks do it. It should be completely open for us to add anyone to our "friends list" that we like. I was trying to install Ubuntu 12.04 in VirtualBox 4.2.12r84980. I see    this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot   But I am using a 64 bit Windows 8, and trying same .iso for trying Ubuntu. Then what is the problem? Is there a "do ... while" loop in Ruby? I'm using this code to let the user enter in names while the program stores them in an array until they enter an empty string (they must press enter after each name):  people = [] info = 'a' # must fill variable with something, otherwise loop won't execute  while not info.empty?     info = gets.chomp     people += [Person.new(info)] if not info.empty? end   This code would look much nicer in a do ... while loop:  people = []  do     info = gets.chomp     people += [Person.new(info)] if not info.empty? while not info.empty?   In this code I don't have to assign info to some random string.  Unfortunately this type of loop doesn't seem to exist in Ruby. Can anybody suggest a better way of doing this? Where can I find medicine? I know it is possible to be stung by bees in Animal Crossing: New Leaf.   I learned that the hard way when I was trying to find my furniture tree. Now, I have an eye swollen shut and all of my towns people are making fun of me. They're all being kind enough to inform me that I need Medicine, but they seem to be enjoying themselves at my expense too much to tell me where to actually find the Medicine.  Where can i get medicine? I'd really like it if my townspeople stopped making fun of me. Adding CSS Reference on Site Page How do you unpin and move the form in the Visual Studio designer? Eigenvalues of Householder matrix What would be the eigenvalues for a Householder matrix defined as: $H = I - 2 u u^T$? Can someone explain it  to me intuitively or with a simple proof? Number of ways to write n as a sum of k nonnegative integers How many ways can I write a positive integer $n$ as a sum of $k$ nonnegative integers up to commutativity?  For example, I can write $4$ as $0+0+4$, $0+1+3$, $0+2+2$, and $1+1+2$.    I know how to find the number of noncommutative ways to form the sum: Imagine a line of $n+k-1$ positions, where each position can contain either a cat or a divider. If you have $n$ (nameless) cats and $k-1$ dividers, you can split the cats in to $k$ groups by choosing positions for the dividers: $\binom{n+k-1}{k-1}$. The size of each group of cats corresponds to one of the nonnegative integers in the sum. By the year 1582 vs in 1582 1.In 1582, scientists pointed out that the calendar was 10 days behind the sun      2.By the year 1582, scientists pointed out that the calendar was 10 days behind the sun.   I wanted to know the difference between "by the year 1582" and "in 1582". I tried for a while to classifiy the singularities of $\frac{1}{z}-\frac{1}{\sin z}$ at the origin, but I am stucked. Is there someone who is able to help me at this point? Run multiple instance of a program in parallel