Answers for "convert c++ code to python"

0

convert c++ code to python

#include<bits/stdc++.h>
using namespace std;
string s[128];
int n,i;
int main()
{
	cin>>n;
	for(int i=0; i<n; i++)
	{
		cin>>s[i];
	}
	sort(s,s+n);
	cout<<s[n/2]<<endl;
	
}
Posted by: Guest on April-25-2021
0

convert c++ code to python

#include<bits/stdc++.h>
using namespace std;
string s[128];
int n,i;
int main()
{
	cin>>n;
	for(int i=0; i<n; i++)
	{
		cin>>s[i];
	}
	sort(s,s+n);
	cout<<s[n/2]<<endl;
	
}
Posted by: Guest on April-25-2021

Code answers related to "convert c++ code to python"

Python Answers by Framework

Browse Popular Code Answers by Language