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













-2












$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










share|improve this question







New contributor




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







$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
If this question can be reworded to fit the rules in the help center, please edit the question.















  • $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















-2












$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










share|improve this question







New contributor




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







$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
If this question can be reworded to fit the rules in the help center, please edit the question.















  • $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













-2












-2








-2





$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










share|improve this question







New contributor




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







$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






share|improve this question







New contributor




trizz 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




trizz 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






New contributor




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









asked 5 hours ago









trizztrizz

1




1




New contributor




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





New contributor





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






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




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
If this question can be reworded to fit the rules in the help center, please edit the question.







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
If this question can be reworded to fit the rules in the help center, please edit the question.











  • $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




$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










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

瀋陽號驅逐艦 目录 接收與服役 配置反潛直升機 武進三型性能升級 歷史 除役 參考資料 外部連結 导航菜单Taiwan Air Power海疆老兵-陽字號驅逐艦沿革World Navies Today: Taiwan (Republic of China)DD-839 USS POWER

波兰旗帜列表 目录 国旗 军旗 其他制服部门旗帜 特别国家机构船只 参考文献 外部链接 导航菜单Polskie flagi, chorągwie, bandery... [波兰旗帜、条幅、船旗等]原始内容Ustawa z dnia 31 stycznia 1980 r. o godle, barwach i hymnie Rzeczypospolitej Polskiej oraz o pieczęciach państwowychZarządzenie Ministra Obrony Narodowej z dnia 14 grudnia 2005 r. zmieniające zarządzenie w sprawie szczegółowych zasad używania znaków Sił Zbrojnych Rzeczypospolitej Polskiej oraz ustalenia innych znaków używanych w Siłach Zbrojnych Rzeczypospolitej PolskiejZarządzenie Ministra Obrony Narodowej z dnia 29 stycznia 1996 r. w sprawie szczegółowych zasad używania znaków Sił Zbrojnych Rzeczypospolitej Polskiej oraz ustalenia innych znaków używanych w Siłach Zbrojnych Rzeczypospolitej PolskiejUstawa z dnia 19 lutego 1993 r. o znakach Sił Zbrojnych Rzeczypospolitej PolskiejHistoria Marynarki Wojennej RP [波兰海军史]Rozporządzenie Ministra Spraw Wewnętrznych i Administracji z dnia 12 kwietnia 2002 r. w sprawie wzoru flagi oraz oznakowania jednostek pływających i statków powietrznych Straży GranicznejRozporządzenie Ministra Spraw Wewnętrznych i Administracji z dnia 18 kwietnia 2005 r. w sprawie wzoru flagi oraz oznakowania jednostek pływających i statków powietrznych PolicjiRozporządzenie Ministra Infrastruktury z dnia 21 października 2005 r. w sprawie wzorów flag dla statków morskich na oznaczenie pełnionej specjalnej służby państwowej oraz okoliczności i warunków ich podnoszenia波兰旗帜波兰

Indenting and Dedenting ASP code with Python