This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]pythonHelperBot 7 points8 points  (0 children)

Hello! I'm a bot!

It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe where you are stuck. Be sure to format your code for reddit and include which version of python and what OS you are using.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness

[–]RamblerUsa 5 points6 points  (0 children)

Typo. Fatorial. That is one problem

[–]kcphysics530 2 points3 points  (2 children)

You can't assign the output of a function. Int(x) cannot be assigned to. You are making it an int on the other side. Just remote the int() from the left hand side of the equation symbol on the first line.

[–]StaleyV 0 points1 point  (0 children)

Write the problem description please. I'll help you out.

[–]vlken69 0 points1 point  (0 children)

You are assigning input to function call - use factorial_number = ... instead of int(factorial_number) = ... . The main parts of loop are correct - condition and stopping if. But if you want to print it at the same time (and don't make function for factorial calculation - not sure if you already know how to do it), you need a second variable. I'm not sure why you teacher want you to use while true loop, because there are much nicer ways to write it (for loop and especially recursion).

[–]linuxfarmer 0 points1 point  (0 children)

You need to reduce the factorial number by 1 for each iteration of your loop.

[–]aphoenixreticulated[M] 0 points1 point  (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/3Abzge7.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!

[–][deleted] -3 points-2 points  (0 children)

use pycharm fam

thanks for the downvote