@cvp oh okay and thank you :)
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by tanjiro887
-
RE: Error during connection via Paramiko in Pythonista beta 340008
-
Armstrong Number In Python
First of all here is the code:
#include<stdio.h> int fun(int); int main() { int x,a,b,y=0; printf("enter the number you want to identify is aN ARMSTRONG OR NOT:"); scanf("%d",&a); for(int i=1 ; i<=3 ; i++) { b = a % 10; x = fun(b); y = x+y; a = a/10; } if(y==a) printf("\narmstrong number"); else printf("\nnot an armstrong number"); return 0; } int fun(int x) { int a; a=x*x*x; return (a); }
I'm attempting to determine whether the number provided by the user is an armstrong number. Yet something is wrong, and I can't figure it out.
Any help is greatly appreciated.
-
RE: Error during connection via Paramiko in Pythonista beta 340008
@cvp Well according to the error message, the PY SSIZE T CLEAN macro must be declared for '#' forms. This macro is important to how Python handles numbers and is typically included in Python headers for compatibility.
So To avoid this problem, specify the PY SSIZE T CLEAN macro in your code before including any Python header files.
#define PY_SSIZE_T_CLEAN #include <Python.h>
Also this code can be included at the beginning of your script, before importing the paramiko module. If you use a package that uses paramiko internally, you may need to edit its source code to include this snippet as well.
And if this does not resolve the issue, there could be a problem with the version of the paramiko module you are using. You could try upgrading to a newer version of the module to see if that addresses the problem.
that is what i think