Python 3.7 n after a loop [on hold]Finding the minimum number of required deletions to have a non-repeating stringMethod injection into TestClass local namespace for automatic generation of Python unittest “test_xxx” methodsPython IBAN validationImproved version of “Let's read a random Goodreads book…”Simple Addition and Subtraction Game in PythonA program that prints the longest substring of s in which the letters occur in alphabetical orderSearch father (x) of the number D(x) and measure time and memory consumedReconstruct a string, given a list of subsequence tripletsPassword generator in Python 3.7Python 3.7 UltimateBruteforcer
How to read the value of this capacitor?
Co-worker team leader wants to inject his friend's awful software into our development. What should I say to our common boss?
Have researchers managed to "reverse time"? If so, what does that mean for physics?
Use of undefined constant bloginfo
What did Alexander Pope mean by "Expletives their feeble Aid do join"?
How could a scammer know the apps on my phone / iTunes account?
Do I need to be arrogant to get ahead?
Why does Bach not break the rules here?
Interplanetary conflict, some disease destroys the ability to understand or appreciate music
What exactly is this small puffer fish doing and how did it manage to accomplish such a feat?
How to make healing in an exploration game interesting
How to use of "the" before known matrices
What do Xenomorphs eat in the Alien series?
A sequence that has integer values for prime indexes only:
Is it normal that my co-workers at a fitness company criticize my food choices?
How do I hide Chekhov's Gun?
Why do passenger jet manufacturers design their planes with stall prevention systems?
What is the significance behind "40 days" that often appears in the Bible?
Is there a data structure that only stores hash codes and not the actual objects?
How to terminate ping <dest> &
An inequality of matrix norm
How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?
Why is the President allowed to veto a cancellation of emergency powers?
Do I need life insurance if I can cover my own funeral costs?
Python 3.7 n after a loop [on hold]
Finding the minimum number of required deletions to have a non-repeating stringMethod injection into TestClass local namespace for automatic generation of Python unittest “test_xxx” methodsPython IBAN validationImproved version of “Let's read a random Goodreads book…”Simple Addition and Subtraction Game in PythonA program that prints the longest substring of s in which the letters occur in alphabetical orderSearch father (x) of the number D(x) and measure time and memory consumedReconstruct a string, given a list of subsequence tripletsPassword generator in Python 3.7Python 3.7 UltimateBruteforcer
$begingroup$
Hey I wrote the following code for an assigment:
def triangular_area():
for i in range(0, 10):
print(((i+1)**2)/2, end=" ")
and it prints the following:
0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0
however, If I call another function that prints a random string right after I call triangular_area, it prints the string in the same line like that:
0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0 "random str"
how can I insert a single n that will occur in the end of for statment?
the machine should read: 0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0n
thanks
python-3.x
New contributor
$endgroup$
put on hold as off-topic by πάντα ῥεῖ, Ludisposed, Vogel612♦ 4 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Ludisposed, Vogel612
add a comment |
$begingroup$
Hey I wrote the following code for an assigment:
def triangular_area():
for i in range(0, 10):
print(((i+1)**2)/2, end=" ")
and it prints the following:
0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0
however, If I call another function that prints a random string right after I call triangular_area, it prints the string in the same line like that:
0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0 "random str"
how can I insert a single n that will occur in the end of for statment?
the machine should read: 0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0n
thanks
python-3.x
New contributor
$endgroup$
put on hold as off-topic by πάντα ῥεῖ, Ludisposed, Vogel612♦ 4 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Ludisposed, Vogel612
$begingroup$
Welcome to Code Review! I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
$endgroup$
– Vogel612♦
4 hours ago
add a comment |
$begingroup$
Hey I wrote the following code for an assigment:
def triangular_area():
for i in range(0, 10):
print(((i+1)**2)/2, end=" ")
and it prints the following:
0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0
however, If I call another function that prints a random string right after I call triangular_area, it prints the string in the same line like that:
0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0 "random str"
how can I insert a single n that will occur in the end of for statment?
the machine should read: 0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0n
thanks
python-3.x
New contributor
$endgroup$
Hey I wrote the following code for an assigment:
def triangular_area():
for i in range(0, 10):
print(((i+1)**2)/2, end=" ")
and it prints the following:
0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0
however, If I call another function that prints a random string right after I call triangular_area, it prints the string in the same line like that:
0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0 "random str"
how can I insert a single n that will occur in the end of for statment?
the machine should read: 0.5 2.0 4.5 8.0 12.5 18.0 24.5 32.0 40.5 50.0n
thanks
python-3.x
python-3.x
New contributor
New contributor
New contributor
asked 5 hours ago
trizztrizz
1
1
New contributor
New contributor
put on hold as off-topic by πάντα ῥεῖ, Ludisposed, Vogel612♦ 4 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Ludisposed, Vogel612
put on hold as off-topic by πάντα ῥεῖ, Ludisposed, Vogel612♦ 4 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Ludisposed, Vogel612
$begingroup$
Welcome to Code Review! I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
$endgroup$
– Vogel612♦
4 hours ago
add a comment |
$begingroup$
Welcome to Code Review! I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
$endgroup$
– Vogel612♦
4 hours ago
$begingroup$
Welcome to Code Review! I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
$endgroup$
– Vogel612♦
4 hours ago
$begingroup$
Welcome to Code Review! I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
$endgroup$
– Vogel612♦
4 hours ago
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Welcome to Code Review! I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
$endgroup$
– Vogel612♦
4 hours ago