Tag Archive: int

Jan 03

To take multiple variable as input in python

  To take multiple variables as input in a single line, we can use split() function as : totalCities, totalPath = raw_input().split()   To take a integer variable as input, we can use int() function as : T = int(raw_input())   When we take a variable as input using raw_input() function, python stores it as …

Continue reading »

Jan 03

To convert all the elements of a string into integers in python

  In Python 2, we can convert all the elements of a list into integers using “map” function as follows : myListName = map(int, myListName)   in Python 3, map returns a map object which you can convert to a list if you want: numbers = list(map(int, numbers))  

Warning: require_once(): open_basedir restriction in effect. File(/home/admin/web/stats.theserverhouse.com/public_html/owa_php.php) is not within the allowed path(s): (/home/admin/web/linuxjoy.in/public_html:/home/admin/tmp) in /home/admin/web/linuxjoy.in/public_html/index.php on line 20

Warning: require_once(/home/admin/web/stats.theserverhouse.com/public_html/owa_php.php): failed to open stream: Operation not permitted in /home/admin/web/linuxjoy.in/public_html/index.php on line 20

Fatal error: require_once(): Failed opening required '/home/admin/web/stats.theserverhouse.com/public_html/owa_php.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/admin/web/linuxjoy.in/public_html/index.php on line 20