Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
if __name__ == '__main__': a = int(3()) b = int(5()) a=3 b=5
Amine Birouk
Programming language:
Whatever
2021-06-30 08:26:15
0
Q:
if __name__ == '__main__': a = int(3()) b = int(5()) a=3 b=5
spinach.blue
Code:
Whatever
2021-09-03 12:53:13
if __name__ == '__main__': a = int(3()) b = int(5()) a=3 b=5
0
Tags
int
Related
if __name__ == '__main__'
What will be output when you will execute following c code? #include<stdio.h> int main(){ printf("%d\t",sizeof(6.5)); printf("%d\t",sizeof(90000)); printf("%d",sizeof('A')); return 0;
#include <iostream> using namespace std; int main() { int a = 3; float b = 4.5; double c = 5.25; double sum; sum = a + b + c; cout << "The sum of a, b, and c is", sum << endl; return 0; }
#include <stdio.h> int main (void) { int a, b; printf("Dwse mou dio akeraious arithmous: \n"); scanf("%d %d", &a, &b); printf("Oi arithmoi poy edwses einai: %d kai %d", a, b); return 0; }
if __name__ == '__main__': app.run(debug=True) not running
Traceback (most recent call last): File "main.py", line 3, in <module> y = eval((x**3+2*x)/(x**4+3(x**2)+1)) TypeError: 'int' object is not callable
'/MSIE\s(?P<v>\d+)/i', @$_SERVER['HTTP_USER_AGENT'], $B) && $B['v'] <= 11
#include<stdio.h> int main() { int n; scanf("%d",&n); int ar[n]; int count=0; for(int i=0;i<n;i++) { scanf("%d",&ar[i]); } for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { if(ar[i]==ar[j]) { count=count+1; } else { count=0; } } } printf("%d\n",(count)/2); }
TypeError: unsupported operand type(s) for -: 'str' and 'int'
if__name__== '__main__':
__name__ == '__main__'
TypeError: unsupported operand type(s) for +: 'int' and 'str'
New to Communities?
Join the community