I want to write this C++ code in Python:
cout<<"input number";
cin>>x;
switch(x)
{
case '1':
cout<<"my name is ali";
case '2':
cout<<"my name is hamza";
default:
cout<<"invalid input";
}
goto again:
I also checked the dictionary statement, but maybe I am coding it incorrectly.