Python Workbook: Exercises For Beginners With Solutions

0
(0)

Python Workbook: Exercises For Beginners With Solutions
 

  • Author:Tech Guides
  • Edition: 1
  • Publication Date: 2021-05-26
  • ISBN-10: B0961VT3GJ
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    This book contains coding examples for beginners to practice along wth complete source code and solution.
    These exercises are useful during interview and examination also.

    Table Of Contents

    List Data Type:

    Write a Python program to find the largest number from a list.

    Write a Python program to find the smallest number in a list.

    Write a Python program to multiply all the items in a list.

    Write a Python program to remove duplicates from a list.

    Write a Python program to check if a list is empty or not.

    Dictionary Data Type:

    Write a Python program to add a key to a dictionary.

    Write a Python program to remove a key from a dictionary.

    Write a Python program to multiply all the items in a dictionary.

    Write a Python program to sum all the items in a dictionary.

    Write a Python program to iterate over dictionaries using for loop.

    Write a Python program to merge two python dictionaries.

    Python Basics:

    Write a Python program to compute the area of triangle.

    Write a Python program to display current date and time.

    Write a Python program to find the volume of a sphere.

    Write a Python program to compute the GCD.

    Write a Python program to compute the LCM.

    Write a Python program to convert feet and inches to centimeters.

    Write a Python program to convert all units of time to seconds.

    Write a Python program to convert the distance in feet to inches, yards and miles.

    Write a Python program to get an absolute file path.

    Write a Python program to check whether a file exists.

    Write a Python program to compute the distance between two points.

    Write a Python program to sum all the items in a list.

    Write a Python program to multiply all items in a list.

    Write a Python program to get the largest number from a list.

    Write a Python program to get the smallest number from a list.

    Write a Python program to clone or copy a list.

    Write a Python program to compute the difference between two lists.

    Write a Python program to create a list with infinite elements.

    Write a Python program to remove duplicates from a list.

    Write a Python program to generate all permutations of a list.

    Write a Python program to access the index of a list.

    Write a Python program to convert a list of characters into a string

    Write a Python program to find the index of an item in a specified list.

    Write a Python program to get unique values from a list.

    Write a Python program to get the frequency of elements in a list.

    Write a Python program to count the number of elements in a list within a specified range.

    Write a Python program to check whether a list contains a sublist.

    Write a Python program to find factorial of a non-negative integer.

    Write a Python program of recursion list sum.

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

    Write a Python program to select an item randomly from a list.

    中文:

    书名:Python练习册:有解决方案的初学者练习

    这本书包含编码示例,供初学者练习,以及完整的源代码和解决方案。
    这些练习在面试和考试中也很有用。

    目录表

    列表数据类型:

    编写一个Python程序,从列表中找出最大的数字。

    编写一个Python程序来查找列表中的最小数字。

    编写一个Python程序,将列表中的所有项目相乘。

    编写一个Python程序来从列表中删除重复项。

    编写一个Python程序来检查列表是否为空。

    字典数据类型:

    Write a Python program to add a key to a dictionary.

    编写一个Python程序来从字典中删除一个键。

    编写一个Python程序,将字典中的所有条目相乘。

    编写一个Python程序,对词典中的所有条目求和。

    编写一个Python程序,使用for循环遍历字典。

    编写一个Python程序来合并两个Python词典。

    Python基础知识:

    编写一个PYTHON程序计算三角形的面积。

    编写一个Python程序来显示当前日期和时间。

    Write a Python program to find the volume of a sphere.

    编写一个Python程序来计算GCD。

    编写一个Python程序来计算LCM。

    编写一个Python程序,将英尺和英寸转换为厘米。

    编写一个Python程序,将所有时间单位转换为秒。

    编写一个Python程序,将以英尺为单位的距离转换为英寸、码和英里。

    Write a Python program to get an absolute file path.

    Write a Python program to check whether a file exists.

    编写一个Python程序来计算两点之间的距离。

    Write a Python program to sum all the items in a list.

    Write a Python program to multiply all items in a list.

    编写一个Python程序,从列表中获取最大的数字。

    Write a Python program to get the smallest number from a list.

    Write a Python program to clone or copy a list.

    Write a Python program to compute the difference between two lists.

    编写一个Python程序来创建一个包含无限元素的列表。

    编写一个Python程序来从列表中删除重复项。

    编写一个Python程序来生成列表的所有排列。

    Write a Python program to access the index of a list.

    编写一个Python程序将字符列表转换为字符串

    编写一个Python程序来查找指定列表中的项的索引。

    Write a Python program to get unique values from a list.

    编写一个Python程序来获取列表中元素的频率。

    编写一个Python程序来计算列表中指定范围内的元素数量。

    编写一个Python程序来检查列表是否包含子列表。

    编写一个Python程序来求一个非负整数的阶乘。

    编写一个PYTHON程序递归列表求和。

    编写一个Python程序将一个列表追加到第二个列表中。

    编写一个Python程序,从列表中随机选择一项。

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册