is there a way to omit automatic \n after 'print' in python 3.x? i want my output something like this:-  2 2 2 4 4 8 8 32   my code is like this:-  a,b=1,2 while b&lt;10:     print (str(b)+' '+str(b*a))     a,b=b,b*a   but i want my code to be like this to print the same thing:-  a,b=1,2 while b&lt;10:     print (str(b))     a,b=b,b*a     print (str(b))   but its printing this:-  2 2 2 4 4 8 8 32   please help me out i am a newcomer in programming and python is my first language. Thank you!
I'd like to do it in Python. What I'd like to do in this example in C: #include &lt;stdio.h&gt;  int main() {     int i;     for (i=0; i&lt;10; i++) printf(&quot;.&quot;);     return 0; }  Output: ..........  In Python: &gt;&gt;&gt; for i in range(10): print('.') . . . . . . . . . . &gt;&gt;&gt; print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to &quot;append&quot; strings to stdout.
Problems when adding a fillable PDF form if the page is rotated Trying to understand what is a p value I am trying to understand what a p value is and what is its importance in statistics, from this example.  For $50$ specimens of alloy steel the rock hardness scale measured an average of $62$ with standard deviation $8$ he manufacturer claims that the alloy has average strength of $64$ at significance of $0.01$ can you refute this?  Well I did this problem and saw no at this level you cant refute it , I use the null being that the hardness was $64$ and the alternate that the hardness was less then $64$. From the data we observe a $z=-1.7677$ but the chart is $z=-2.33$ and so we cant refute null at this level.  But now I want to understand what the p value would be ,  I thought it was that the p-value is the probability of getting the observed value of the test or a value with even more evidence against the null if the null is actually true. So using that I just look on the z chart, the probability of seeing Z greater then $1.7677$ is $0.0384$, so is that the p value? How to install Windows on GPT disk without UEFI BIOS? Have we managed to make a perfect vacuum? Have we managed to make a device without any atom inside it on earth? I was reading about vacuum , and I found in the examples part  that even on the best man made vacuum devices, there are still millions of "molecules per $cm^3$". So my other question here is, what are these molecules and what is the mass of them? What are the colored/highlighted edges in edit mode? I need to make Windows 7 STOP disabling the wifi adapter when the wired LAN is connected This is a Dell Latitude E6430. There is a setting in the bios to control this behavior and I have DISABLED it but it still happens. I am also running the latest bios.  When I plug in a network cable the wifi adapter becomes disabled. I need it to stay enabled. What else could be making this happen?  EDIT: The reason I need to do this is because with NETSH WLAN commands you can create a wifi hotspot by sharing the internet connection on the wired adapter and broadcasting a ssid on the virtual wifi nic. I do this all the time but it's not working on this laptop. I'm wondering if it's a network security thing where I am. I'm going to try from my hotel tonight and report back. How do I call one constructor from another in Java? Is it possible to call a constructor from another (within the same class, not from a subclass)? If yes how? And what could be the best way to call another constructor (if there are several ways to do it)? Searching by user id in Android app only shows questions, no answers I have a Samsung Galaxy S3. Android version 4.3  I downloaded the official StackExchange app today. I am not able to view post related to android tag from my profile. I tried refreshing also  Snap     Edit:  However i am able to see one post for the relevant from the drop down list    Edit 2:  I tried what Steven V suggested. However it's the same.    I tried for a different user its the same. Convert a matrix to a 1 dimensional array I have latitude and longitude as 19.0649070739746 and 73.1308670043945 respectively.   In this case both coordinates are 13 decimal places long, but sometimes I also get coordinates which are 6 decimal places long.   Do fewer decimal points affect accuracy, and what does every digit after the decimal place signify? Unable to modify files/folders in NTFS partition What are the advantages/disadvantages of the new encryption feature in ubuntu 13.10 I'm in the middle of installing 13.10 and the Ubuntu page I was following on how to install from a USB stick says nothing about these two choices (on the Installation type screen):     1) Encrypt the new Ubuntu installation for security (you will choose a security key in the next step).      2) Use LVM with the new Ubuntu installation (this will set up Logical Volume Management. It allows taking snapshots and easier partition resizing)   I'm a writer using the computer for mostly writing ebooks but I also do all the things most people do: buy stuff online, online banking etc. I want my information to be safe but I don't want to overburden my system with security stuff either. And I've read a lot of the similarly themed questions here on the forum but they've all been about stuff more technical than I'm concerned about.   Can somebody please just tell me in real layman's terms about the implications of these two choices? Thank you. Ideals in ring of continuous functions $\mathcal{C}[0,1]$ ... NBHM- Algebra I would like to compile all questions I have encountered with Ideals in the ring $\mathcal{C}[0,1]$ of all continuous real valued functions and ask if there are any gaps.  Question is to see if :     the ideal $\mathcal{I}=\{f\in \mathcal{C}[0,1] : f(0)=0\}$ is maximal ideal in the ring $\mathcal{C}[0,1]$ of all continuous real valued functions.   What I have done so far is :  consider $\eta :\mathcal{C}[0,1]\rightarrow \mathbb{R}$ where $f\rightarrow f(0)$   $Ker (\eta) = \{ f\in \mathcal{C}[0,1] : f(0)=0\}$  I could see that for each $r\in \mathbb{R}$, I would set $f$ such that $f(x)=x+r$  So, $\eta$ is surjective.  So, I would get $\mathcal{C}[0,1]/\mathcal{I}\cong \mathbb{R}$  As $\mathbb{R}$ is a field so ia the quotient $\mathcal{C}[0,1]/\mathcal{I}$ which means that $\mathcal{I}$ is an ideal in $\mathcal{C}[0,1]$.    Now Another Question on same idea :  Question is to see if :     the ideal $\mathcal{I}=\{f\in \mathcal{C}[0,1] : f(0)=f(1)=0\}$ is maximal ideal in the ring $\mathcal{C}[0,1]$ of all continuous real valued functions.   I thought of using same ideas as above but i am unable to choose perfect $\eta$  I believe that this is not even a prime ideal..  I set  $f(x)=x$ and $g(x)=x-1$ and consider $f(x)g(x)=(x)(x-1)$ then,   $(fg)(0)=f(0)g(0)=0.(-1)=0$   $(fg)(1)=f(1)g(1)=1.0=0$  So, $fg\in \mathcal{I}=\{f\in \mathcal{C}[0,1] : f(0)=f(1)=0\}$ but the neither $f$ nor $g$ is in $\mathcal{I}$.    I have two questions:   I see that $0$ does not play any role in the question $\mathcal{I}=\{f\in \mathcal{C}[0,1] : f(0)=0\}$ I mean I would have same case if i replace $0$ by any real number.  So, I would like to say that $$\mathcal{I}=\{f\in \mathcal{C}[0,1] : f(r)=0\}$$  is a maximal ideal in the ring $\mathcal{C}[0,1]$ of all continuous real valued functions.  And one more thing I would claim is that      If the collection $\mathcal{I}$ is such that all elements of $\mathcal{I}$ has more than $1$ common zero then $\mathcal{I}$ is not a maximal ideal and not even a prime ideal..   I would like to learn more about this kind of ideals in $\mathcal{C}[0,1]$.  I would be thankful if some one can assure that what  have done is sufficient to conlcude what i have concluded and I would be thankful if some one can suggest some material to read regarding this.  Thank you Text spirals with TikZ I just ran across this, and I'm curious about whether it can be replicated in TeX...    Ideally one would have the spiral getting tighter and tighter as one got to the centre, as in    I know TikZ has the ability to fit text along a path, but I'm not sure how one might make text get smaller and smaller.  The closest I can find is , but that uses manually inserted font commands.  Edit: I got what I wanted using mwibrow's answer: How to test a confirm dialog with Cucumber? This question led to a new package:      How can I display the full path of the tex file that I compile? It is a simple file, no include or input present.  Edit: I use MiKTeX 2.9 on a Windows 7 64-bit.  Less demanding: If not possible, then I will be satisfied with a partial path (at least one or two folders up + the filename). Simulating data to fit a mediation model What should one look for when buying a used film camera? I'm planning to buy a used Nikon F5.   I have no experience with a film camera and I want to know what all should one be careful of before buying a used film camera and more specifically a Nikon F5. I have tried to dig around for this, but I can't find a way (other than stepping one by one through past reviews) to see what proportion of my review decisions match the eventual outcome of the review.  This stat would give me confidence that I'm in line with the review guidance and not becoming too lenient in my old age. If it gets too low, I can then double check individual reviews to find out why I'm missing the mark. Altering layer's CRS to correct Layer Misalignment in QGIS I've got a vector layer in my project which isn't aligned with the rest of the project (see attached JPEG).  These are work files so I'm not sure when they were created or how they might have been messed with since they were created.  We moved from ArcGIS to QGIS a couple of years ago.  The infilled blue vector layer is the one I need to move, slightly north and east, so that it correlates to the blue line (also a vector).  All layers (and the project) are currently in EPSG:27700 - OSGB 1936.   If I need to create a new CRS based on OSGB 1936 and give it some new parameters, then how would I go about this?  Further information:  This is on Exmoor in SW England, and the data is uniformly almost exactly 8m out to the SW point to point - i.e I need to shift it 8m NE.