Lab 1a: Write a python program to find the best of two test average marks out of three test’s marks accepted from the user.
- How does your program accept user input for the three test marks?
- What steps does your program take to calculate the average marks for each test?
- How does your program determine the best of the two test averages?
- Could you explain the use of any conditional statements or loops in your program?
- How would your program handle invalid inputs, such as non-numeric characters or negative values for test scores?
Lab 1b: Develop a Python program to check whether a given number is palindrome or not and also count the number of occurrences of each digit in the input number.
- How does your program determine whether the given number is a palindrome or not?
- Could you explain the approach your program uses to count the occurrences of each digit in the input number?
- How does your program handle potential errors or invalid inputs, such as non- numeric characters or negative values?
- Does your program utilize any data structures or specific techniques to count the occurrences of digits efficiently?
- What optimizations, if any, have you implemented to enhance the efficiency of your program, especially in counting the occurrences of digits?
Lab 2a: Defined as a function F as Fn = Fn-1 + Fn-2. Write a Python program which accepts a value for N (where N >0) as input and pass this value to the function.
Display suitable error message if the condition for input value is not followed.
- Could you explain the concept behind the function F, where Fn = Fn-1 + Fn-2?
- How does your Python program verify and handle the condition for the input value
(N) to ensure it’s greater than zero?
- Could you explain the process within your program that passes the user-provided value (N) to the defined function F?
- Does your program utilize any iterative or recursive methods to calculate the function Fn = Fn-1 + Fn-2?
- How does your program ensure the display of an appropriate error message when the input value does not satisfy the condition N > 0?
Lab 2b: Develop a python program to convert binary to decimal, octal to hexadecimal using functions.
- Can you explain the specific functions you’ve created for converting binary to decimal and octal to hexadecimal?
- How does your program validate the input received from the user to ensure it represents a valid binary or octal number before performing the conversion?
- Could you describe the algorithms or mathematical operations used within the functions to perform the conversions accurately?
- How does your program manage potential errors or unexpected inputs during the conversion process?
- Do your functions handle large binary numbers or octal values effectively, or are there limitations to the size of the numbers they can process?
Lab 3a: Write a Python program that accepts a sentence and find the number of words, digits, uppercase letters and lowercase letters
- How does your program determine the number of words in the provided sentence?
- Could you explain the process your program follows to identify and count the number of digits within the sentence?
- What approach does your program take to calculate the count of uppercase letters in the sentence?
- How does your program differentiate between lowercase and uppercase letters while counting their occurrences?
- Does your program account for potential edge cases or unexpected inputs, such as special characters or punctuation within the sentence?
Lab 3b: Write a Python program to find the string similarity between two given strings
- What specific metric or approach does your program use to calculate the similarity between two strings?
- Can you explain how your program handles variations in string lengths when computing their similarity?
- Could you discuss the types of string similarity measurements or algorithms your program is utilizing?
- How does your program account for cases where the strings have similar content but different structures or order of words?
- Does your program consider the impact of case sensitivity or different character types (such as Unicode characters) in determining string similarity?
Lab 4a: Write a Python program to Demonstrate how to Draw a Bar Plot using Matplotlib.
- How does your program utilize Matplotlib to create a bar plot in Python?
- Could you explain the data representation used in your program for creating the bar plot?
- What customization options or attributes does your program employ to enhance the visualization of the bar plot (e.g., colors, labels, axes formatting)?
- Does your program allow for multiple bars, grouped bars, or stacked bars in the plot? If so, how does it achieve this functionality?
- How does your program handle potential errors or unexpected data types while creating the bar plot?
Lab 4b: Write a Python program to Demonstrate how to Draw a Scatter Plot using Matplotlib.
- How does your program use Matplotlib to create a scatter plot in Python?
- What type of data structure does your program utilize for generating the scatter plot?
- Could you explain the customization options applied in your program to enhance the visual aspects of the scatter plot (e.g., marker styles, colors, labels, axis formatting)?
- Does your program handle additional dimensions in the scatter plot, such as size or color of markers to represent another variable? If so, how is this accomplished?
- How does your program address potential issues or unexpected data types when creating the scatter plot?
Lab 5a: Write a Python program to Demonstrate how to Draw a Histogram Plot using Matplotlib.
- How does your program utilize Matplotlib to create a histogram plot in Python?
- What type of data representation or structure does your program use to create the histogram?
- Could you explain the customization options implemented in your program to enhance the visual aspects of the histogram (e.g., bins, colors, labels, axes formatting)?
- Does your program provide flexibility in setting the number of bins or handling different bin sizes in the histogram plot? If so, how is this managed?
- How does your program manage potential errors or unexpected data types while creating the histogram plot?
Lab 5b: Write a Python program to Demonstrate how to Draw a Pie Chart using Matplotlib.
- How does your program utilize Matplotlib to create a pie chart in Python?
- What type of data representation does your program employ for generating the pie chart?
- Could you explain the customization options your program uses to enhance the appearance of the pie chart (e.g., colors, labels, explode, shadow effects)?
- Does your program handle the labeling of slices in the pie chart, especially when there are many slices or small portions? If so, how is this managed?
- How does your program address potential errors or unexpected data types while creating the pie chart?
Lab 6a: Write a Python program to illustrate Linear Plotting using Matplotlib.
- How does your program use Matplotlib to create a linear plot in Python?
- Could you explain the data representation and format used within your program to illustrate the linear plot?
- What customization options or attributes does your program utilize to enhance the appearance of the linear plot (e.g., line styles, colors, labels, axes formatting)?
- Does your program handle multiple lines on the same plot or incorporate markers along the plotted line? If so, how is this implemented?
- How does your program manage potential errors or unexpected data types while creating the linear plot?
Lab 6b: Write a Python program to illustrate liner plotting with line formatting using Matplotlib
- How does your program use Matplotlib to perform linear plotting with line formatting in Python?
- What line formatting options or attributes does your program employ to enhance the appearance of the plotted lines (e.g., line styles, colors, thickness)?
- Could you explain how your program differentiates and illustrates various lines using different formatting in the same plot?
- Does your program allow for the inclusion of markers or points along the plotted lines, and how are these incorporated with the line formatting?
- Does your program allow for the inclusion of markers or points along the plotted lines, and how are these incorporated with the line formatting?
Lab 7: Write a Python program which explains uses of customizing seaborn plots with Aesthetic functions
- How does your program utilize Seaborn’s aesthetic functions to customize plots in Python?
- Could you explain the types of customizations applied using Seaborn’s aesthetic functions (e.g., changing color palettes, modifying plot styles, adjusting plot elements)?
- What are the advantages of using Seaborn’s aesthetic functions over standard plotting libraries for plot customization?
- Does your program demonstrate the application of aesthetic functions in multiple types of plots (e.g., bar plots, line plots, scatter plots)? If so, how is this achieved?
- How does your program handle potential errors or unexpected inputs when using Seaborn’s aesthetic functions for plot customization?
Lab 8: Write a Python program for plotting different types of plots using Bokeh
- How does your program utilize Bokeh to create different types of plots in Python?
- Which types of plots are demonstrated in your program using Bokeh?
- Could you explain the approach your program uses to handle and format the various plot types (e.g., line plots, scatter plots, bar plots) in Bokeh?
- Does your program showcase interactivity features or tools available in Bokeh for the created plots? If so, how are these features implemented?
- How does your program handle potential errors or unexpected data inputs when creating different types of plots using Bokeh?
Lab 9: Write a Python program to draw 3D Plots using Plotly Libraries
- How does your program use the Plotly library to create 3D plots in Python?
- Which types of 3D plots are demonstrated in your program using Plotly (e.g., 3D surface plots, scatter plots, contour plots)?
- Could you explain the approach your program takes to handle and format the different types of 3D plots in Plotly?
- Does your program showcase any interactive or customizable features available in Plotly for the created 3D plots? If so, how are these features implemented?
- How does your program handle potential errors or unexpected data inputs when creating various 3D plots using Plotly?
Lab 10a: Write a Python program to draw Time Series using Plotly Libraries.
- How does your program utilize Plotly to create Time Series plots in Python?
- Which specific features of Plotly does your program use to handle time-based data in creating Time Series plots?
- Could you explain the process your program follows to format and represent Time Series data within the Plotly environment?
- Does your program offer any interactive elements for the Time Series plots, such as zooming, panning, or tooltips? If so, how are these implemented?
- How does your program manage potential errors or unexpected data formats when creating Time Series plots using Plotly?
Lab 10b: Write a Python program for creating Maps using Plotly Libraries
- How does your program utilize Plotly libraries to create maps in Python?
- Which types of maps are demonstrated in your program using Plotly (e.g., scatter plots on maps, choropleth maps, geographic heatmaps)?
- Could you explain the data representation and source used within your program to create maps in Plotly?
- Does your program showcase any interactive or customizable features available in Plotly for the created maps (e.g., zoom, hover information, custom styling)? If so, how are these features implemented?
- How does your program handle potential errors or unexpected data inputs when creating different types of maps using Plotly?