python make integer into a list
res = [int(x) for x in str(num)]
python make integer into a list
res = [int(x) for x in str(num)]
how to convert integer to list in python
//Solution by Technoname.com
import java.util.Scanner;
public class Technoname
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String s =sc.nextLine();
int N = 0, E=0, W= 0, S= 0 ,i;
for (i=0;i<s.length();i++)
{
if(s.charAt(i)=='N')
{
N++;
}
if(s.charAt(i)=='E')
{
E++;
}
if(s.charAt(i)=='W')
{
W++;
}
if(s.charAt(i)=='S')
{
S++;
}
}
if( N==S && E==W )
{
System.out.println("Returned successfully");
}
else
{
System.out.println("Not Returned successfully");
}
}
}
Question 3 :
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us