Coder Social home page Coder Social logo

python_3's Introduction

Python_3

1-- Write a Python program to append a list to the second list.

2-- Write a Python program to get the 4th element and 4th element from last of a tuple.

3-- Write a Python program to check whether an element exists within a tuple.

4-- Write a Python program to find those numbers which are divisible by 7 and multiple of 5, between two given numbers (both included) 5--

Write a Python program to compute the distance between the points (x1, y1) and (x2, y2).

6-- Write a Python program to add 'ing' at the end of a given string (length should be at least 3). If the given string already ends with 'ing' then add 'ly' instead. If the string length of the given string is less than 3, leave it unchanged.

7-- Write a Python program to remove the characters which have odd index values of a given string.

8-- Write a Python program which iterates the integers from 1 to n. For multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".

9-- Write a Python program that accepts a string and calculate the number of digits and letters. Use a separate condition for each validity rule

10-- Write a Python program to check the validity of a given password. Validation :

    At least 1 letter between [a-z] and 1 letter between [A-Z].
    At least 1 number between [0-9].
    At least 1 character from [$#@].
    Minimum length 6 characters.
    Maximum length 16 characters.

11-- Write a Python program to create the multiplication table (from 1 to 10) of a given number.

12-- Write a Python program to calculate the sum and average of n integer numbers

13-- Write a Python program to print the following pattern

1

22

333

4444

55555

666666

7777777

...n

14-- Write a Python program to construct the following pattern using a nested for loop and a given (n) number

*

* *

* * *

* * * *

* * * * n

* * * *

* * *

* *

*

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.