Skip to content

This contains solutions to various python codes I have programmed. It covers programs from the very basic "hello world" to programs using GUI. I have taken up and solved in my free time.

Notifications You must be signed in to change notification settings

mohitvenx/python-programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-codes

Contains programs made using python3. The programs present in this file are:

  • Mathoperations.py - Program which adds, subtracts, multiplies, divides given numbers
  • age_in_seconds.py - Shows the persons current age is total number of seconds
  • alphabet_input.py - program to read alphabets except 'F','c','f','C'characters and print the characters
  • bitwiserightshift.py - Program to clear rightmost set bit of a number
  • calculate_wind_chill_index.py - To find the wind chill index
  • checkbalanceifexample.py - To check and print the balance in account
  • distance_between_latitudes_longitudes.py - To find the distance between given latitudes and longitudes
  • distancebetween2points.py - To find distance between 2 points
  • distanceconversions.py - Coneverts distance in km to m, cm, ft, inch
  • factorial.py - To find factorial of a number
  • factors_of_number.py - Give factors of the number entered
  • fibonacci_series.py - Gives the fibonacci series upto n terms
  • final_clock.py - working Analogue clock using GUI
  • find_noof_inputsgiven.py - Print the positive numbers provided by user and total no.of numbers entered
  • finding_first_even_element_in_list.py - To find the first even element in a given list of numbers
  • finding_primenumber.py - Shows the prime numbers upto the given number
  • findingtimedifference.py - To find the differnce between start and finish time
  • gradeobtained.py - Grades depending on marks scored
  • gravitationalforce.py - Finding the gravitational force between two objects
  • greatestnum.py - Comparision between 3 numbers
  • helloworld.py - To print the statement hello world
  • list_join.py - To convert the elements in a list to mac id form
  • match_teams_and_captains.py - Given list of captains and teams(in respective order) assign them to Teams
  • nameandwhenyouturn100.py - It tells the user which year he/she turns a 100 years old
  • names.py - It takes the first and last name and prints them together
  • nestedif.py - nested if example program
  • no_of_desks_needed_in_a_class.py - The number of desks needed in a class room
  • numnature.py - To check if number is positive or not
  • nums_in_given_range.py - To print the natural numbers in given range
  • one_to_ten_numbers.py - printing the first 10 numbers
  • printingnextcharacter.py - Reading charecters and printing the next character
  • radian_to_degree.py - To convert radians to degrees
  • rounding_off.py - To round off and find absolute value of -4.3
  • send_festivegreetings.py - Send festival greetings to friends all friends in the list using join
  • separating_list.py - Separate a given list to sub lists with common features
  • shipping_cost_for_items.py - To find shipping cost for 60 copies where cost of shipping for first copy is 3rs and the rest is 75 paise
  • simpleinterest.py - Finding the simple interest
  • simple_calculator - Basic calculator using GUI TKINTER
  • spherevolumeandarea.py - To find volume and surface area of a sphere
  • splitting_string_to_make_formal_letter.py - To convert a given string to a formal letter
  • string_encoding.py - Example for string encoding
  • string_operations(2).py - Example for string operations continued
  • string_operations.py - Example for string operations
  • sum_of_inputs.py - To print the positive numbers provided by user and total no.of numbers entered
  • sumofdigitsinanumber.py - To find the sum of digits of a 4 digit number
  • swappingmemoryvalesoftwovariables.py - Swapping memoery of 2 variables
  • swappingmemoryvalesusingmath.py - Swapping memoery of 2 variables(METHOD 2)
  • swapusingxor.py - Swapping values of 2 variables
  • temperatureconversion.py - To convert from C to F and F to C

About

This contains solutions to various python codes I have programmed. It covers programs from the very basic "hello world" to programs using GUI. I have taken up and solved in my free time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages