- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
10 Posted Topics
Re: Here is the code to find the factorial of a python using recursion.This code works fine : def recur_factorial(n): """Function to return the factorial of a number using recursion""" if n == 1: return n else: return n*recur_factorial(n-1) num=int(input("Enter the number: ")) print("factorial of ",num," (recursive): ",end="") print(recur_factorial(num)) There are … | |
Re: You can use Viola jones algoritm for face detection.And also use Python as it is much easier that way.Here is a simple face detection guide using opencv [face detection with viola jones algorithm](https://www.mygreatlearning.com/blog/viola-jones-algorithm/) | |
Re: Hy, The reason you are getting this error is because you are trying to access the element a[0][0] at the end of the function and while doing the operations in the function you change the array a and at the end of the function it has this value [14, [16, … | |
Re: To precisely answer your question , we use a library called datetime to date related problems in python.The code below will work for you.Also it seems you are new to python so i will post a link to free tutorial of python here for beginners [Python for absolue beginners](https://www.mygreatlearning.com/blog/python-tutorial-for-beginners-a-complete-guide/) ` … | |
Re: Here is a code to draw a square using turtle.I hope you get an idea from this to makes lines turtle.forward(50) turtle.left(90) turtle.forward(50) turtle.left(90) turtle.forward(50) turtle.left(90) turtle.forward(50) turtle.left(90) | |
Re: I assume that you are either a beginner or a non programmer. Here is how your problem can be solved.I have tried to modify the above answer to make it a more easy for you. marks = int(input("Enter marks : ")) if marks >= 60: print("first") elif marks >= 45: … | |
Re: What is machine learning is a broader topic to cover for this answer.Hope these two explinations help you understand the very basics of ML 1. Since you mentioned about equation and all , let the first explination be about that. So given some equation of a curve or line,it is … | |
Re: The question not being so clear, i guess i cannot be much help but here are some tips that might help you 1. As the error suggests , maybe you are passing it a list of strings,in this case i believe you extract the string from the list using a … | |
Re: I would not compare C/C++ with any languages as they are classic but yet very powerful languages.Let me give you a case scenaria, If you want to build a application where speed is your primary objective go with C++ (like in gaming) and if you want to build an operating … | |
Re: 1. Python is a general-purpose programming language. It just happens to be good for web development using frameworks like Django, web2py, and Flask. 2. Python is also good for data science and machine learning, but one does not call Python a machine learning language. 3. Python is also good for … |
The End.