Python Answers

Questions answered by Experts: 5 288

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search



Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset.




Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.




Assume radius of earth: 6371 km




Round length of each line and final result to 2 decimal points




If co-ordinates are missing for any country use 0.000 N 0.000 E





Population limit: 20792




Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.



Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset.



Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.



Assume radius of earth: 6371 km



Round length of each line and final result to 2 decimal points



If co-ordinates are missing for any country use 0.000 N 0.000 E




Population limit: 20792



Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.

in a building, there are N rooms numbered from 1 to N. In each room there is a bulb that is initially ON for the odd-numbered rooms and OFF for the even-numbered rooms.before visiting a room, you will note the state of the bulb. when you leave a room, the bulb is turned OFF if it is ON and turned ON if it is OFF. you visit all rooms in the same order as they are numbered. you then return to the starting room and repeat the process for N times. you are given N, write a program that should output the state of the bulb in each room for every visit

Note: Print 1 if the bulb is ON, 0 otherwise

I/p: The input is a single line containing a positive integer N representing the number of room in the building

O/p: The output contains N lines each line containing the state of the bulb in the room numbered from 1 to N

Note: These is a space after each 1 or 0

I/p: N=5

1 0 1 0 1

0 1 0 1 0

1 0 1 0 1

0 1 0 1 0

1 0 1 0 1

I/p: N=6

O/p:

1 0 1 0 1 0

0 1 0 1 0 1

1 0 1 0 1 0

0 1 0 1 0 1

1 0 1 0 1 0

0 1 0 1 0 1



Develop a console or GUI turn-based battle game.

Attribute Warrior Tanker

Health Point 100 100

Attack Point Range between 5 - 20 Range between 1 - 10

Defence Point Range between 1 - 10 Range between 5 - 15

Experience Point (EXP) 0 0

Rank/Level > or 1 > or 1




Given the number of the month, write a program to print the name of the month.


Sample Input 2

4

2

3

5

7

Sample Output 2

2


Sample Input 1

5

1

10

4

3

2

Sample Output 1

3



can i get coode for this the above code is not working for both cases


Do you like reading books? If you do, then you must have encountered texts that have quite a wide space with dots in between them, just like pausing or thinking before proceeding the narration. Let's try doing that here in Python,


How to evaluate my python file using pytest and how to install pytest from pip ????


you are given two integers, a and b. print the smallest value among a%b and b%a.


BankAccount class

In the main code:

  • use a loop to input() four accounts into a list
  • use a loop to print all accounts in the list

In the class, add methods to:

  • calculate and return the totalDeposits() for all accounts
  • find and return the name of the large account
LATEST TUTORIALS
APPROVED BY CLIENTS