Skip to main content

Posts

Test your Python logic! Python most important question List

 Python most asked question during interview: These are question list of python if you solve then comment this code on below comment section. 1) Write a program to count total even elements and odd elements in list? 2) Write a program to write five differences between list and tuple? 3) Write a program to write 10 predefine function name of dictionary and explain shortly with example. 4) Write a program to find lowest age in four person age? 5)Write a program to contain score of Australia,india,bangladesh,southafrica and afganistan and display max score team. 6)Write a program to display this pattern *******  ****** *****   ****   ***    **     * 7)Write a program to find most repeated word in paragraph? 8) Write a program to display total combination of any word. naman amann manan annma 9)Write a program to find only consecutive word  in paragraph? 10)Write a program to find first max and second max element in matrix for each row? 11)Wr...

Most Important Flutter Widgets Code snippet | Learn Flutter by Code

 Create Complete quiz app using flutter app with timer : import 'dart:async'; import 'package:flutter/material.dart'; class quizApp extends StatelessWidget {   @override   Widget build(BuildContext context) {     return MaterialApp(       home: quizAppScreen(),     );   } } class quizAppScreen extends StatefulWidget {   @override   quizAppScreenState createState() => quizAppScreenState(); } class quizAppScreenState extends State<quizAppScreen> {   String? _selectedValue1;   String? _selectedValue2;   String? _selectedValue3;   int _secondsRemaining = 20;   late Timer _timer;   @override   void initState() {     super.initState();     startTimer();   }   void startTimer() {     _timer = Timer.periodic(Duration(seconds: 1), (timer) {       setState(() {         if (_secondsRemaining > 0) {     ...

High level Flutter Code snippet | Learn Flutter with real-time App

 Create EVM Pad Application: import 'package:flutter/material.dart'; void main() {   runApp(EVMPadApp()); } class EVMPadApp extends StatelessWidget {   @override   Widget build(BuildContext context) {     return MaterialApp(       title: 'EVM Pad',       home: EVMHomePage(),     );   } } class EVMHomePage extends StatefulWidget {   @override   _EVMHomePageState createState() => _EVMHomePageState(); } class _EVMHomePageState extends State<EVMHomePage> {   final List<Candidate> candidates = [     Candidate('Indian National Congress', 'assets/images/congress.png'),     Candidate('Bjp', 'assets/images/bjp.png'),     Candidate('Aap', 'assets/images/aap.png'),     Candidate('Bsp', 'assets/images/bsp.png'),   ];   void showResultsDialog(BuildContext context) {     int totalVotes =     candidates.fold(0, (sum, candidate) =...

Advance Flutter Code Snippet | Learn Flutter by Code

 Dropdownlist Example in Flutter: import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; class DropdownDemo extends StatefulWidget {   const DropdownDemo({Key? key}) : super(key: key);   @override   State<DropdownDemo> createState() => _DropdownDemoState(); } class _DropdownDemoState extends State<DropdownDemo> {   String dropdownValue = 'Area of circle';   @override   Widget build(BuildContext context) {     return Scaffold(       appBar: AppBar(title: const Text("DDDD")),       body: Center(         child: Column(           children: [             SizedBox(               height: 50,             ),             // Step 2.             DropdownButton<String>(   ...

Flutter Code Snippet | How to Write Code on Flutter with Different Widgets

 Flutter Exampe 1st:  1)  Print Welcome message:- Create MyTextPage.dart file import 'package:flutter/material.dart'; class MyTextPage extends StatelessWidget {   @override   Widget build(BuildContext context) {     return Scaffold(       appBar: AppBar(           title:Text("Text Widget Example")       ),       body: Center(           child:Text("Welcome to SHIVA CONCEPT",style: TextStyle(fontSize: 35,               color: Colors.purple,               fontWeight: FontWeight.w700,               fontStyle: FontStyle.italic,               letterSpacing: 8,               wordSpacing: 20,               backgroundColor: Colors.yellow,       ...

Millionaire Question List to check your logical skills in Any language?

Millionaire Question List  1)  WAP to display this pattern *******  ****** *****   **** ***    ** * 2)  WAP to find most repeated word in paragraph? 3)  WAP to display total combination of any word. naman amann manan annma 4) Write a Program to print before five character and after five character of any entered charatcer in cyclic pattern? 5) Write a Program to sort the prime element in List? 6) Create userdefine exception to validate name, name should accept alphabets only? 7) Create a program to read and write data from file in dictionary pattern? 8) Write a Program to display prime elements in fibonacci series? 9) Write a program to write any name in binary form? 10) Write a Program to create lift program where no of floor and total lift movement entered by the user's 11) Write a Program to merge two array in one array? 12) Write a Program to display only duplicate elements and it should be display once? [1,2,2,2,3,4,5,1,7] 1,2 13) Wri...

Create OM NAMAH SHIVAY JAP MANTRA based application using Python

 Create OM NAMAH SHIVAY JAP MANTRA based application using Python This application require, pyttsx3 based library to convert text to speech. install pip install pyttsx3  write this code. import time import pyttsx3   engine = pyttsx3.init() engine.setProperty('rate', 150)  # Speed of speech (words per minute) engine.setProperty('volume', 0.8)  # Volume (0.0 to 1.0) count=1 while True:     print("OM NAMAH SHIVAY")     engine.say("OM NAM AH SHIV AY ")     engine.runAndWait()     time.sleep(2)     print(count)     count=count+1     if count>10:         break